/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

:root {
  /* Brand Palette */
  --kb-ink:        #0D1117;
  --kb-ink-soft:   #1C2333;
  --kb-slate:      #2D3748;
  --kb-muted:      #64748B;
  --kb-ghost:      #94A3B8;
  --kb-border:     #E2E8F0;
  --kb-surface:    #F8FAFC;
  --kb-white:      #FFFFFF;

  /* Accent — warm gold (authority + trust) */
  --kb-gold:       #D97706;
  --kb-gold-light: #FEF3C7;
  --kb-gold-dark:  #92400E;

  /* Brand Blue */
  --kb-blue:       #1D4ED8;
  --kb-blue-light: #EFF6FF;
  --kb-blue-mid:   #3B82F6;

  /* Semantic */
  --kb-success:    #059669;
  --kb-success-bg: #ECFDF5;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Be Vietnam Pro', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Type Scale (Major Third — 1.250) */
  --text-xs:   0.64rem;
  --text-sm:   0.8rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.563rem;
  --text-xl:   1.953rem;
  --text-2xl:  2.441rem;
  --text-3xl:  3.052rem;
  --text-4xl:  3.815rem;
  --text-hero: clamp(2.8rem, 6vw, 5.2rem);

  /* Spacing (8px base) */
  --sp-1: 0.5rem;   /* 8px */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-5: 2.5rem;   /* 40px */
  --sp-6: 3rem;     /* 48px */
  --sp-8: 4rem;     /* 64px */
  --sp-10: 5rem;    /* 80px */
  --sp-12: 6rem;    /* 96px */
  --sp-16: 8rem;    /* 128px */

  /* Layout */
  --max-w:        1280px;
  --max-w-prose:  72ch;
  --col-gap:      clamp(1rem, 3vw, 2rem);

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadows (no color on shadows — use ink with opacity) */
  --shadow-sm:  0 1px 3px rgba(13,17,23,0.08), 0 1px 2px rgba(13,17,23,0.04);
  --shadow-md:  0 4px 16px rgba(13,17,23,0.10), 0 2px 6px rgba(13,17,23,0.06);
  --shadow-lg:  0 20px 48px rgba(13,17,23,0.14), 0 8px 20px rgba(13,17,23,0.08);
  --shadow-xl:  0 40px 80px rgba(13,17,23,0.18);

  /* Transitions */
  --t-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --t-base:   250ms cubic-bezier(0.4,0,0.2,1);
  --t-slow:   400ms cubic-bezier(0.4,0,0.2,1);
  --t-spring: 500ms cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.kb-container {
  width: min(var(--max-w), 100% - var(--sp-4));
  margin-inline: auto;
}
.kb-container--narrow { width: min(860px, 100% - var(--sp-4)); margin-inline: auto; }

/* CSS Grid Layouts */
.kb-grid-auto    { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--col-gap); }
.kb-grid-2       { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--col-gap); }
.kb-grid-3       { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.kb-grid-4       { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
.kb-grid-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-8); align-items: start; }
.kb-grid-blog    { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }

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

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */
.display-serif {
  font-family: var(--font-display) !important;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--kb-ink);
}
.display-serif em {
  font-style: italic;
  color: var(--kb-gold);
}

.eyebrow {
  font-family: var(--font-mono) !important;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kb-gold);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================
   HERO SECTION — Full viewport, editorial
   ============================================ */
.site-hero {
  position: relative;
  min-height: 550px;
  background: var(--kb-ink);
  overflow: hidden;
  padding-block: var(--sp-8);
}

/* Background geometric pattern */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(217,119,6,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(29,78,216,0.06) 0%, transparent 50%);
  z-index: 1;
}

/* Grid decoration lines */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 40%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 6px 14px;
  background: rgba(217,119,6,0.12);
  border: 1px solid rgba(217,119,6,0.25);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--kb-gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.hero-badge span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--kb-gold);
  text-transform: uppercase;
}

.hero-heading {
  font-family: var(--font-display) !important;
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--kb-white) !important;
  margin-bottom: var(--sp-3);
}
.hero-heading em {
  font-style: italic;
  color: var(--kb-gold);
}

.hero-desc {
  font-size: var(--text-md);
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 52ch;
  margin-bottom: var(--sp-5);
}
.hero-desc strong { color: rgba(255,255,255,0.9); font-weight: 500; }

.hero-actions { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }

.btn-hero {
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--r-md);
  transition: all var(--t-spring);
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hero-primary {
  background: var(--kb-gold);
  color: var(--kb-white) !important;
}
.btn-hero-primary:hover {
  background: #B45309;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,119,6,0.45);
}
.btn-hero-secondary {
  background: transparent;
  color: rgba(255,255,255,0.8) !important;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: var(--kb-white) !important;
  border-color: rgba(255,255,255,0.4);
}

/* Hero Card — Right side floating */
.hero-card-wrap {
  position: relative;
  perspective: 1000px;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate3d(0,1,0,0deg); }
  50% { transform: translateY(-10px) rotate3d(0,1,0,1deg); }
}
.hero-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kb-gold) 0%, var(--kb-blue) 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: var(--sp-2);
  border: 3px solid rgba(255,255,255,0.2);
}
.hero-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--kb-white);
  margin-bottom: 2px;
}
.hero-card-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--kb-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: var(--sp-3);
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.hero-stat {
  text-align: center;
  padding: var(--sp-2);
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--kb-gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* Social proof logos */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.proof-logos { display: flex; gap: var(--sp-2); align-items: center; }
.proof-logo {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.proof-logo:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }

/* Hero scroll indicator */
.hero-scroll {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) 0 var(--sp-4);
  position: relative;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--kb-gold), transparent);
  margin-left: var(--sp-3);
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .hero-content { text-align: center; }
  .hero-badge { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-card-wrap { display: none; }
}

/* ============================================
   STATS BAR — Social Proof Band
   ============================================ */
.stats-bar {
  background: var(--kb-surface);
  border-bottom: 1px solid var(--kb-border);
  padding: var(--sp-4) 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--col-gap);
  align-items: center;
}
.stat-item {
  text-align: center;
  padding: var(--sp-2) var(--sp-3);
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--kb-border);
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--kb-ink);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-number sup {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--kb-gold);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--kb-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3)::before, .stat-item:nth-child(4)::before { display: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--kb-border); padding-top: var(--sp-3); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--kb-border); padding-top: var(--sp-3); }
}

/* ============================================
   ABOUT STRIP — Homepage intro
   ============================================ */
.about-strip {
  padding: var(--sp-16) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--kb-surface);
  border: 1px solid var(--kb-border);
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1C2333 0%, #2D3748 50%, #1A3050 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 900;
  color: rgba(217,119,6,0.3);
  letter-spacing: -0.04em;
}
.about-badge-float {
  position: absolute;
  bottom: var(--sp-4);
  right: calc(-1 * var(--sp-4));
  background: var(--kb-white);
  border: 1px solid var(--kb-border);
  border-radius: var(--r-lg);
  padding: var(--sp-2) var(--sp-3);
  box-shadow: var(--shadow-md);
  min-width: 180px;
  z-index: 10;
}
.badge-since {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--kb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.badge-year {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--kb-ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.badge-year span { color: var(--kb-gold); }

.about-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--kb-ink);
  margin-bottom: var(--sp-3);
  line-height: 1.1;
}
.about-heading em { font-style: italic; color: var(--kb-gold); }
.about-desc {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--kb-muted);
  margin-bottom: var(--sp-4);
}
.about-desc strong { color: var(--kb-slate); font-weight: 600; }

/* Skills/Expertise tags */
.skill-tags { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.skill-tag {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--t-base);
}
.skill-tag-primary { background: var(--kb-ink); color: var(--kb-white) !important; }
.skill-tag-secondary { background: var(--kb-surface); color: var(--kb-slate) !important; border: 1px solid var(--kb-border); }
.skill-tag-secondary:hover { background: var(--kb-gold-light); border-color: var(--kb-gold); color: var(--kb-gold-dark) !important; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-badge-float { right: var(--sp-2); }
}

/* ============================================
   PILLAR TOPICS SECTION — Category Grid
   ============================================ */
.topics-section {
  padding: var(--sp-16) 0;
  background: var(--kb-ink);
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}
.topic-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: var(--sp-5) var(--sp-4);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.topic-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transition: transform var(--t-spring);
  transform-origin: left;
}
.topic-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.topic-card:hover::after { transform: scaleX(1); }

.topic-seo::after      { background: var(--kb-blue-mid); }
.topic-marketing::after { background: var(--kb-success); }
.topic-social::after   { background: #EC4899; }
.topic-ads::after      { background: var(--kb-gold); }

.topic-icon {
  font-size: 2.2rem;
  margin-bottom: var(--sp-3);
  display: block;
}
.topic-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--kb-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-1);
}
.topic-name {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--kb-white);
  margin-bottom: var(--sp-1);
  line-height: 1.2;
}
.topic-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.topic-arrow {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  transition: all var(--t-base);
}
.topic-card:hover .topic-arrow { color: var(--kb-gold); transform: translate(4px,-4px); }

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

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section { padding: var(--sp-16) 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.service-card {
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  border: 1.5px solid var(--kb-border);
  background: var(--kb-white);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--service-color, var(--kb-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-spring);
}
.service-card:hover { border-color: var(--service-color, var(--kb-gold)); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
  background: var(--service-bg, var(--kb-gold-light));
}
.service-title { font-size: var(--text-md); font-weight: 700; color: var(--kb-ink); margin-bottom: var(--sp-1); }
.service-desc { font-size: var(--text-sm); color: var(--kb-muted); line-height: 1.7; margin-bottom: var(--sp-3); }
.service-price {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--service-color, var(--kb-gold));
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0;
  border-top: 1px solid var(--kb-border);
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ============================================
   TESTIMONIALS — Proof Section
   ============================================ */
.testimonials-section {
  padding: var(--sp-16) 0;
  background: var(--kb-surface);
  border-top: 1px solid var(--kb-border);
  border-bottom: 1px solid var(--kb-border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.testimonial-card {
  background: var(--kb-white);
  border: 1px solid var(--kb-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-quote {
  font-size: 2.5rem;
  color: var(--kb-gold);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.testimonial-text {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--kb-slate);
  margin-bottom: var(--sp-3);
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: var(--sp-2); }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  background: var(--kb-gold);
}
.author-name  { font-size: var(--text-sm); font-weight: 700; color: var(--kb-ink); }
.author-title { font-size: var(--text-xs); color: var(--kb-muted); }
.rating {
  font-size: var(--text-xs);
  color: var(--kb-gold);
  margin-bottom: var(--sp-2);
  letter-spacing: 1px;
}

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================
   NEWSLETTER CTA — Dark section
   ============================================ */
.newsletter-section {
  padding: var(--sp-16) 0;
  background: var(--kb-ink);
  position: relative;
  overflow: hidden;
}
.newsletter-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(217,119,6,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
  position: relative;
  z-index: 2;
}
.newsletter-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--kb-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.newsletter-heading em { font-style: italic; color: var(--kb-gold); }
.newsletter-desc { font-size: var(--text-base); color: rgba(255,255,255,0.55); margin-top: var(--sp-2); line-height: 1.7; }

.newsletter-form { }
.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-1);
}
.form-row { display: flex; gap: var(--sp-1); }
.form-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--kb-white);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  transition: border-color var(--t-base), background var(--t-base);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  outline: none;
  border-color: var(--kb-gold);
  background: rgba(255,255,255,0.09);
}
.btn-subscribe {
  padding: 12px 24px;
  background: var(--kb-gold);
  color: white !important;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--r-md);
  transition: all var(--t-spring);
  white-space: nowrap;
}
.btn-subscribe:hover { background: #B45309; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(217,119,6,0.4); }
.form-note { font-size: var(--text-xs); color: rgba(255,255,255,0.3); margin-top: var(--sp-1); }

.newsletter-benefits { margin-top: var(--sp-4); }
.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-1);
}
.benefit-item::before {
  content: '✓';
  width: 18px; height: 18px;
  background: rgba(5,150,105,0.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--kb-success);
  flex-shrink: 0;
  font-weight: 700;
}

@media (max-width: 900px) { .newsletter-inner { grid-template-columns: 1fr; } .form-row { flex-direction: column; } }

/* ============================================
   BLOG PILLAR GRID UTILITIES
   ============================================ */
.kb-post-card-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--kb-border);
  background: var(--kb-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.kb-post-card-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.kb-post-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.kb-post-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.kb-post-card:hover .kb-post-thumb-img,
.kb-post-card-featured:hover .kb-post-thumb-img { transform: scale(1.04); }

/* Category badge */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat-seo      { background: var(--kb-blue-light); color: var(--kb-blue) !important; }
.cat-marketing { background: var(--kb-success-bg); color: var(--kb-success) !important; }
.cat-social   { background: #FDF2F8; color: #9D174D !important; }
.cat-ads      { background: #FFF7ED; color: #C2410C !important; }

/* Featured post body */
.kb-post-featured-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kb-post-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  flex-wrap: wrap;
}
.kb-post-date, .kb-post-read-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--kb-ghost);
}
.kb-post-date::before { content: '📅 '; font-size: 0.7em; }
.kb-post-read-time::before { content: '⏱ '; font-size: 0.7em; }
.kb-post-featured-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--kb-ink);
  line-height: 1.25;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.02em;
}
.kb-post-featured-title:hover { color: var(--kb-gold-dark); }
.kb-post-excerpt {
  font-size: var(--text-base);
  color: var(--kb-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kb-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--kb-ink);
  transition: gap var(--t-base), color var(--t-base);
}
.kb-read-more::after {
  content: '→';
  transition: transform var(--t-base);
}
.kb-read-more:hover { color: var(--kb-gold-dark); gap: 10px; }
.kb-read-more:hover::after { transform: translateX(4px); }

/* Regular post card */
.kb-post-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--kb-border);
  background: var(--kb-white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.kb-post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kb-post-body { padding: var(--sp-3); flex: 1; display: flex; flex-direction: column; }
.kb-post-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--kb-ink);
  line-height: 1.4;
  margin-block: var(--sp-1);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.kb-post-card:hover .kb-post-title { color: var(--kb-gold-dark); }

@media (max-width: 900px) {
  .kb-post-card-featured { grid-column: span 1; grid-template-columns: 1fr; }
}

/* ============================================
   SINGLE ARTICLE / BLOG POST
   ============================================ */
.post-layout {
  padding: var(--sp-8) 0 var(--sp-16);
}
.post-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-8);
  align-items: start;
}
.post-header { margin-bottom: var(--sp-5); }
.post-header-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--kb-ink);
  margin-bottom: var(--sp-3);
}
.post-author-strip {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--kb-border);
  border-bottom: 1px solid var(--kb-border);
  margin-bottom: var(--sp-4);
}
.author-mini-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kb-gold) 0%, var(--kb-blue) 100%);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.author-mini-name { font-size: var(--text-sm); font-weight: 700; color: var(--kb-ink); }
.author-mini-date { font-size: var(--text-xs); color: var(--kb-muted); font-family: var(--font-mono); }

.article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--kb-slate);
  max-width: var(--max-w-prose);
}
.article-body h2 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--kb-ink);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--kb-border);
}
.article-body p { margin-bottom: var(--sp-3); }
.article-body blockquote {
  border-left: 4px solid var(--kb-gold);
  background: var(--kb-gold-light);
  margin: var(--sp-4) 0;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  font-size: var(--text-md);
  color: var(--kb-gold-dark);
}

/* Callout boxes */
.callout {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  border-left: 4px solid;
  margin: var(--sp-4) 0;
}
.callout-info    { border-color: var(--kb-blue); background: var(--kb-blue-light); }
.callout-warning { border-color: #F59E0B; background: #FFFBEB; }
.callout-success { border-color: var(--kb-success); background: var(--kb-success-bg); }
.callout-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.callout-info .callout-title    { color: var(--kb-blue); }
.callout-warning .callout-title { color: #92400E; }
.callout-success .callout-title { color: var(--kb-success); }
.callout p { font-size: var(--text-sm); color: var(--kb-slate); margin: 0; }

/* Table of Contents */
.toc-widget {
  position: sticky;
  top: 88px;
  background: var(--kb-white);
  border: 1px solid var(--kb-border);
  border-radius: var(--r-xl);
  padding: var(--sp-3);
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--kb-ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
  padding-bottom: var(--sp-1);
  border-bottom: 2px solid var(--kb-gold);
}
.toc-list { list-style: none; padding: 0; }
.toc-item { border-left: 2px solid var(--kb-border); margin-left: 4px; }
.toc-link {
  display: block;
  padding: 5px 12px;
  font-size: var(--text-xs);
  color: var(--kb-muted);
  line-height: 1.5;
}
.toc-link:hover { color: var(--kb-ink); font-weight: 600; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--kb-gold), var(--kb-blue));
  z-index: 9999;
}

/* Author Box */
.author-box {
  margin-top: var(--sp-8);
  padding: var(--sp-5);
  border: 1px solid var(--kb-border);
  border-radius: var(--r-xl);
  background: var(--kb-surface);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: center;
}
.author-box-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kb-gold) 0%, var(--kb-blue) 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  border: 3px solid var(--kb-white);
  box-shadow: var(--shadow-md);
}
.author-box-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--kb-ink);
}
.author-box-role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--kb-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-2);
}
.author-box-bio { font-size: var(--text-sm); color: var(--kb-muted); line-height: 1.7; }

/* ============================================
   PAGE ENTRANCE ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim-fade-up  { animation: fadeUp  0.6s ease both; }
.anim-fade     { animation: fadeIn  0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.45s; }
.delay-5 { animation-delay: 0.6s; }

/* Utility helper classes */
.section-pad { padding: var(--sp-16) 0; }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.gap-sm { gap: var(--sp-2); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.fw-700 { font-weight: 700; }
.color-gold { color: var(--kb-gold) !important; }
.color-muted { color: var(--kb-muted) !important; }