/*
Theme Name: GeneratePress Child
Theme URI: https://kevinocasio.com
Description: GeneratePress Child Theme for KevinOcasio.com
Author: Kevin Ocasio
Author URI: https://kevinocasio.com
Template: generatepress
Version: 1.3.0
*/

/* ==========================================================================
   CSS Custom Properties (Theme Tokens - Clean Minimalist)
   ========================================================================== */
:root {
  --ko-primary: #dc2626;
  /* Accent Red strictly for Logo & subtle touches */
  --ko-primary-hover: #b91c1c;
  --ko-text: #0f172a;
  /* Deep Charcoal / Slate */
  --ko-text-muted: #64748b;
  /* Medium Slate Gray */
  --ko-bg: #f8fafc;
  /* Soft off-white page background (matches FU & HOB) */
  --ko-surface: #ffffff;
  /* Crisp white card background */
  --ko-border: #e2e8f0;
  /* Subtle light gray border */
  --ko-border-hover: #cbd5e1;
  --ko-radius: 12px;
  --ko-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --ko-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Base Layout & Typography (Bricolage Grotesque & Inter)
   ========================================================================== */
html {
  scrollbar-gutter: stable;
}

html,
body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  color: var(--ko-text);
  background-color: var(--ko-bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.ko-drawer-locked {
  overflow-y: hidden;
}

.site-header {
  background: #0b1329;
  border-bottom: 1px solid #1e293b;
  width: 100%;
  box-sizing: border-box;
}

.site-header .inside-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  padding: 16px 24px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-branding {
  margin: 0 !important;
  text-align: left !important;
  flex-shrink: 1 !important;
}

@media (max-width: 640px) {
  .site-header .inside-header {
    padding: 14px 16px !important;
  }
}

/* Hide desktop menu completely - ONLY Logo + Hamburger exist in header */
.main-navigation {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 750;
  color: var(--ko-text);
  letter-spacing: -0.025em;
}

.main-title {
  font-family: "Bricolage Grotesque", sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(22px, 5vw, 32px) !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

.main-title a {
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

.ko-logo-first {
  color: #ffffff !important;
}

.ko-logo-last {
  color: #ff4d4d !important;
}

/* ==========================================================================
   Header Hamburger Button (Clean minimal style)
   ========================================================================== */
.ko-hamburger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.ko-hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.ko-hamburger-btn:focus,
.ko-hamburger-btn:focus-visible,
.ko-hamburger-btn:active {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.ko-hamburger-line {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* ==========================================================================
   Slideout Navigation Drawer (Where To?) - Clean Typography
   ========================================================================== */
.ko-drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ko-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.ko-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: var(--ko-surface);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ko-nav-drawer.is-open {
  transform: translateX(0);
}

.ko-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 16px 22px;
  border-bottom: 1px solid var(--ko-border);
}

.ko-drawer-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ko-text);
}

.ko-drawer-close-btn {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ko-text-muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.ko-drawer-close-btn:hover {
  background: #f1f5f9;
  color: var(--ko-text);
}

.ko-drawer-content {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ko-drawer-section {
  display: flex;
  flex-direction: column;
}

.ko-drawer-section-label {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 0 10px;
  margin-bottom: 6px;
}

.ko-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ko-drawer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  color: #1e293b !important;
  transition: all 0.15s ease;
}

.ko-drawer-row:hover {
  background: #f8fafc;
  color: #000000 !important;
  transform: translateX(2px);
}

.ko-drawer-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
}

.ko-drawer-icon {
  width: 17px;
  height: 17px;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.ko-drawer-row:hover .ko-drawer-icon {
  color: #0f172a;
}

.ko-badge-red-soft {
  background: #fef2f2;
  color: var(--ko-primary);
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ko-badge-blue-soft {
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 750;
  padding: 2px 7px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ko-drawer-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 8px;
}

.ko-drawer-socials {
  display: flex;
  gap: 16px;
  padding: 4px 12px;
}

.ko-drawer-socials .ko-social-icon {
  width: 20px;
  height: 20px;
  fill: #64748b;
  transition: fill 0.15s ease, transform 0.15s ease;
}

.ko-drawer-socials .ko-social-icon:hover {
  fill: #0f172a;
  transform: translateY(-1px);
}

/* ==========================================================================
   Buttons (Clean Dark / Slate - Zero Loud Red)
   ========================================================================== */
.ko-btn-dark {
  display: inline-block;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid #0f172a;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ko-btn-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.ko-btn-outline {
  display: inline-block;
  background: var(--ko-surface);
  color: var(--ko-text) !important;
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--ko-border);
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ko-btn-outline:hover {
  background: #f1f5f9;
  border-color: var(--ko-border-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Page Titles & Section Headers (Inner Pages)
   ========================================================================== */
.ko-page-hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--ko-text);
  letter-spacing: -0.03em;
}

.ko-page-hero-title span {
  color: var(--ko-primary);
}

.ko-section-title-centered {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin: 48px 0 8px 0;
  color: var(--ko-text);
  letter-spacing: -0.02em;
}

.ko-section-subtitle-centered {
  text-align: center;
  font-size: 15px;
  color: var(--ko-text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   About Page Story & Natural Editorial Flow
   ========================================================================== */
.ko-about-photo-float {
  float: left;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f5f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  margin: 4px 24px 12px 0;
}

@media (max-width: 640px) {
  .ko-about-photo-float {
    float: none;
    display: block;
    margin: 0 auto 18px auto;
    width: 110px;
    height: 110px;
  }
}

.ko-about-personal-note {
  margin-top: 28px !important;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
  font-size: 14px !important;
  color: #64748b !important;
  margin-bottom: 0 !important;
}

.ko-founder-main {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ko-text);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ko-founder-note {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ko-text-muted);
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--ko-primary);
  margin-top: 8px;
}

/* ==========================================================================
   Principles Grid [ko_principles] (About Page)
   ========================================================================== */
.ko-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0 44px 0;
}

.ko-principle-card {
  background: var(--ko-surface);
  border: 1px solid var(--ko-border);
  border-radius: var(--ko-radius);
  padding: 26px;
  box-shadow: var(--ko-shadow);
  display: flex;
  flex-direction: column;
}

.ko-principle-number {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.ko-principle-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--ko-text);
}

.ko-principle-desc {
  font-size: 14px;
  color: var(--ko-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Clean Card Grids (Portfolio & Tools I Use Pages)
   ========================================================================== */
.ko-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0 36px 0;
  align-items: stretch;
}

.ko-clean-card {
  background: var(--ko-surface);
  border: 1px solid var(--ko-border);
  border-radius: var(--ko-radius);
  padding: 24px;
  box-shadow: var(--ko-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ko-clean-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ko-shadow-hover);
  border-color: var(--ko-border-hover);
}

.ko-clean-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ko-clean-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--ko-text);
}

.ko-clean-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--ko-text-muted);
}

.ko-clean-card-desc {
  font-size: 14.5px;
  color: var(--ko-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.ko-clean-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f8fafc;
  padding-top: 12px;
}

.ko-link-action,
.ko-link-primary {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.ko-link-action:hover,
.ko-link-primary:hover {
  color: var(--ko-primary);
  text-decoration: underline;
}

.ko-link-subtle,
.ko-link-secondary {
  font-size: 13px;
  font-weight: 500;
  color: var(--ko-text-muted);
  text-decoration: none;
}

.ko-link-subtle:hover,
.ko-link-secondary:hover {
  color: var(--ko-text);
}

/* ==========================================================================
   Portfolio Page
   ========================================================================== */
body:not(.home) .entry-content .ko-portfolio-intro {
  font-size: 16px !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin-bottom: 32px !important;
}

body:not(.home) .entry-content .ko-portfolio-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-bottom: 0 !important;
}

body:not(.home) .entry-content .ko-portfolio-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

body:not(.home) .entry-content .ko-portfolio-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12) !important;
  border-color: #94a3b8 !important;
}

body:not(.home) .entry-content .ko-portfolio-card:hover .ko-portfolio-visit-link {
  color: #e11d48 !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-browser-frame {
  background: #0b1329 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-browser-bar {
  height: 30px !important;
  background: #0b1329 !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
  position: relative !important;
  border-bottom: 1px solid #1e293b !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-browser-dots {
  display: flex !important;
  gap: 5px !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-browser-dots span {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.28) !important;
  display: inline-block !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-browser-url {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.03em !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-preview-wrap {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

body:not(.home) .entry-content .ko-portfolio-card .ko-proj-preview-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top !important;
  display: block !important;
}

body:not(.home) .entry-content .ko-portfolio-card-content {
  padding: 24px 28px !important;
}

body:not(.home) .entry-content .ko-portfolio-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  gap: 12px !important;
}

body:not(.home) .entry-content .ko-portfolio-card-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

body:not(.home) .entry-content .ko-portfolio-card-title a {
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

body:not(.home) .entry-content .ko-portfolio-card-title a:hover {
  color: #e11d48 !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content .ko-portfolio-card-badge {
  font-size: 11px !important;
  font-weight: 750 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  white-space: nowrap !important;
  background: #f1f5f9 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
}

body:not(.home) .entry-content .ko-portfolio-card-desc {
  font-size: 15px !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin: 0 0 18px 0 !important;
}

body:not(.home) .entry-content .ko-portfolio-tech-stack {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
}

body:not(.home) .entry-content .ko-tech-pill {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content .ko-portfolio-card-footer {
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 16px !important;
  display: flex !important;
  justify-content: flex-start !important;
}

body:not(.home) .entry-content .ko-portfolio-visit-link {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

body:not(.home) .entry-content .ko-portfolio-visit-link:hover {
  color: #e11d48 !important;
  text-decoration: none !important;
}

/* Contact Banner */
body:not(.home) .entry-content a.ko-portfolio-contact-banner {
  background: #0b1329 !important;
  border-radius: 12px !important;
  padding: 44px 28px !important;
  text-align: center !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  display: block !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body:not(.home) .entry-content a.ko-portfolio-contact-banner:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px -4px rgba(11, 19, 41, 0.25) !important;
}

body:not(.home) .entry-content a.ko-portfolio-contact-banner:hover .ko-portfolio-contact-btn {
  background: #be123c !important;
}

body:not(.home) .entry-content .ko-portfolio-contact-title {
  color: #ffffff !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.02em !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content .ko-portfolio-contact-desc {
  color: #94a3b8 !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  max-width: 620px !important;
  text-wrap: balance !important;
  margin: 0 auto 24px auto !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content .ko-portfolio-contact-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #e11d48 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  border: none !important;
  transition: background 0.15s ease, transform 0.15s ease !important;
}

/* ==========================================================================
   Tools Page (Categorized Full-Width Resource Cards)
   ========================================================================== */
body:not(.home) .entry-content .ko-tools-intro {
  font-size: 16px !important;
  color: #64748b !important;
  line-height: 1.65 !important;
  margin-bottom: 36px !important;
}

body:not(.home) .entry-content .ko-tool-category-block {
  margin-bottom: 0 !important;
}

body:not(.home) .entry-content hr.ko-tools-divider {
  border: none !important;
  height: 1px !important;
  width: 80% !important;
  max-width: 600px !important;
  margin: 40px auto !important;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0) 0%, rgba(203, 213, 225, 0.9) 25%, rgba(203, 213, 225, 0.9) 75%, rgba(203, 213, 225, 0) 100%) !important;
}

body:not(.home) .entry-content .ko-tool-category-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  letter-spacing: -0.025em !important;
}

body:not(.home) .entry-content .ko-tool-items-stack {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
}

@media (max-width: 640px) {
  body:not(.home) .entry-content .ko-tool-items-stack {
    grid-template-columns: 1fr !important;
  }
}

body:not(.home) .entry-content a.ko-tool-item-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  height: 100% !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

body:not(.home) .entry-content a.ko-tool-item-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08) !important;
  border-color: #94a3b8 !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content a.ko-tool-item-card .ko-tool-item-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  gap: 8px !important;
}

body:not(.home) .entry-content a.ko-tool-item-card .ko-tool-item-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  text-decoration: none !important;
}

body:not(.home) .entry-content a.ko-tool-item-card .ko-tool-item-arrow {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

body:not(.home) .entry-content a.ko-tool-item-card:hover .ko-tool-item-arrow {
  color: #e11d48 !important;
  transform: translate(2px, -2px) !important;
}

body:not(.home) .entry-content a.ko-tool-item-card .ko-tool-item-desc {
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

/* ==========================================================================
   Contact CTA Box [ko_contact_box]
   ========================================================================== */
.ko-contact-cta-box {
  background: #f1f5f9;
  border: 1px solid var(--ko-border);
  border-radius: var(--ko-radius);
  padding: 36px 24px;
  text-align: center;
  margin: 36px 0;
}

.ko-contact-cta-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ko-text);
}

.ko-contact-cta-desc {
  font-size: 15px;
  color: var(--ko-text-muted);
  max-width: 480px;
  margin: 0 auto 18px auto;
}

/* ==========================================================================
   Standard Editorial & Interior Page Template (White Card on Slate Stage)
   ========================================================================== */
body:not(.home) {
  background-color: #f1f5f9 !important;
}

body:not(.home) #page,
body:not(.home) #content,
body:not(.home) #primary,
body:not(.home) .site-main {
  background-color: transparent !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.home) .site-content {
  max-width: 1200px !important;
  background: transparent !important;
  padding: 0 20px !important;
  margin: 0 auto !important;
}

body:not(.home) .inside-article {
  max-width: 840px !important;
  margin: 20px auto !important;
  padding: 36px 40px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

@media (max-width: 768px) {
  body:not(.home) .site-content {
    padding: 0 16px !important;
  }

  body:not(.home) .inside-article {
    margin: 16px auto !important;
    padding: 24px 18px !important;
    border-radius: 10px !important;
  }
}

body:not(.home) .entry-header {
  margin-bottom: 22px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body:not(.home) .entry-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: clamp(28px, 5vw, 36px) !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

body:not(.home) .entry-content {
  font-size: 15.5px;
  line-height: 1.75;
  color: #334155;
}

body:not(.home) .entry-content p {
  margin-bottom: 18px;
}

body:not(.home) .entry-content>*:last-child {
  margin-bottom: 0 !important;
}

body:not(.home) .entry-content h2 {
  font-size: clamp(20px, 4vw, 24px) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  margin-top: 36px !important;
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
}

body:not(.home) .entry-content h3 {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

body:not(.home) .entry-content ul,
body:not(.home) .entry-content ol {
  margin: 16px 0 24px 18px !important;
  padding-left: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

@media (max-width: 640px) {

  body:not(.home) .entry-content ul,
  body:not(.home) .entry-content ol {
    margin-left: 8px !important;
  }
}

body:not(.home) .entry-content ul li {
  position: relative !important;
  padding-left: 24px !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
}

body:not(.home) .entry-content ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 5px !important;
  width: 14px !important;
  height: 14px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

body:not(.home) .entry-content ol {
  counter-reset: ko-counter !important;
}

body:not(.home) .entry-content ol li {
  position: relative !important;
  padding-left: 26px !important;
  counter-increment: ko-counter !important;
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #334155 !important;
}

body:not(.home) .entry-content ol li::before {
  content: counter(ko-counter) "." !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  font-weight: 800 !important;
  color: var(--ko-primary) !important;
}

body:not(.home) .entry-content strong {
  font-weight: 750 !important;
  color: #0f172a !important;
}

body:not(.home) .entry-content a {
  color: var(--ko-primary) !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(220, 38, 38, 0.4) !important;
  text-underline-offset: 3px !important;
  transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

body:not(.home) .entry-content a:hover {
  color: #0b1329 !important;
  text-decoration-color: #0b1329 !important;
}

@media (max-width: 640px) {
  body:not(.home) .site-content {
    padding: 36px 18px 56px 18px !important;
  }

  body:not(.home) .entry-header {
    margin-bottom: 24px !important;
    padding-bottom: 18px !important;
  }
}

/* ==========================================================================
   Contact Form 7 & Modern Form Styling
   ========================================================================== */
.wpcf7 {
  margin-top: 24px;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wpcf7-form p {
  margin-bottom: 0 !important;
}

.wpcf7-form label {
  font-family: "Inter", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 0 !important;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  border-color: #0b1329 !important;
  box-shadow: 0 0 0 3px rgba(11, 19, 41, 0.08) !important;
  outline: none !important;
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-submit,
.wpcf7-form input[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0b1329 !important;
  color: #ffffff !important;
  font-family: "Inter", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(11, 19, 41, 0.25) !important;
  transition: all 0.15s ease !important;
  width: auto !important;
  align-self: flex-start !important;
  margin-top: 6px !important;
}

.wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover {
  background: #17233f !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(11, 19, 41, 0.35) !important;
}

.wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: 1px solid #cbd5e1 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

.wpcf7-not-valid-tip {
  font-size: 12px !important;
  color: #dc2626 !important;
  font-weight: 600 !important;
  margin-top: 4px !important;
}

.ko-contact-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ko-contact-privacy-note {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 !important;
  line-height: 1.5;
}

.ko-contact-socials-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ko-contact-socials-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

.ko-contact-socials-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:not(.home) .entry-content a.ko-contact-social-btn,
.ko-contact-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  background: #0b1329 !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(11, 19, 41, 0.15) !important;
}

body:not(.home) .entry-content a.ko-contact-social-btn svg,
.ko-contact-social-btn svg {
  width: 16px !important;
  height: 16px !important;
  fill: #ffffff !important;
  transition: transform 0.15s ease !important;
}

body:not(.home) .entry-content a.ko-contact-social-btn:hover,
.ko-contact-social-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3) !important;
}

/* ==========================================================================
   Homepage Full-Width Canvas Reset & Full-Width Sections
   ========================================================================== */
body.home .site-header {
  background: transparent !important;
  border-bottom: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  margin-bottom: 0 !important;
}

body.home #page {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  background: transparent !important;
}

body.home .site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body.home .site-main {
  margin: 0 !important;
}

body.home .inside-article {
  padding: 0 !important;
  margin: 0 !important;
}

body.home .entry-content {
  margin: 0 !important;
}

.ko-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .ko-container {
    padding: 0 16px;
  }
}

/* 1. Full-Width Rich Blue Hero Section (Seamless with Header) */
.ko-full-hero {
  background: radial-gradient(circle at 85% 20%, rgba(37, 99, 235, 0.25), transparent 50%), #0b1329;
  border-bottom: 1px solid #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 10;
  padding: 108px 0 92px 0;
  text-align: center;
}

@media (max-width: 640px) {
  .ko-full-hero {
    padding: 72px 0 52px 0 !important;
  }
}

.ko-full-hero-h1 {
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 auto 20px auto;
  max-width: 860px;
}

@media (max-width: 768px) {
  .ko-full-hero-h1 br {
    display: none;
  }
}

.ko-full-hero-story {
  font-size: clamp(15.5px, 4vw, 18.5px);
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0 auto 30px auto;
  max-width: 700px;
}

.ko-full-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .ko-full-hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 10px;
  }
}

.ko-hero-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111a30;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

@media (max-width: 640px) {
  .ko-hero-btn-dark {
    width: 100%;
    padding: 12px 20px;
  }
}

.ko-hero-btn-dark:hover {
  background: #1a2744;
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Homepage Sections Architecture
   ========================================================================== */

/* 1. The Content Engine Stage (Unified Clean White) */
.ko-home-content-stage {
  padding: 76px 0 24px 0;
  background: #ffffff;
}

.ko-cat-block {
  margin-bottom: 64px;
}

.ko-cat-block-last {
  margin-bottom: 24px;
}

.ko-cat-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
  width: 100%;
}

.ko-cat-title-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ko-cat-header-icon {
  color: var(--ko-primary);
  flex-shrink: 0;
}

.ko-cat-main-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.2;
}

.ko-cat-btn-view-all {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent !important;
  border: none !important;
  padding: 4px 0 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  box-shadow: none !important;
  transition: color 0.15s ease, transform 0.15s ease;
}

.ko-btn-mob {
  display: none;
}

.ko-btn-desk {
  display: inline;
}

.ko-cat-btn-view-all:hover {
  color: var(--ko-primary) !important;
  border: none !important;
  box-shadow: none !important;
  transform: translateX(3px);
}

.ko-articles-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 960px) {
  .ko-articles-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .ko-btn-desk {
    display: none;
  }

  .ko-btn-mob {
    display: inline;
  }

  .ko-home-content-stage {
    padding: 44px 0 16px 0 !important;
  }

  .ko-cat-block {
    margin-bottom: 36px !important;
  }

  .ko-cat-header-bar,
  .ko-sec-header-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }

  .ko-cat-title-lockup {
    gap: 8px !important;
  }

  .ko-cat-main-title {
    font-size: clamp(19px, 4.8vw, 23px) !important;
  }

  .ko-cat-header-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .ko-cat-btn-view-all {
    font-size: 12.5px !important;
    padding: 0 !important;
  }

  .ko-articles-3col {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

.ko-article-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

.ko-article-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1) !important;
  border-color: #cbd5e1 !important;
  text-decoration: none !important;
}

a.ko-article-card,
a.ko-article-card:hover,
a.ko-article-card:focus,
a.ko-article-card:active {
  text-decoration: none !important;
  color: inherit !important;
}

a.ko-article-card *,
a.ko-article-card:hover * {
  text-decoration: none !important;
}

.ko-article-thumb-wrap {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #0b1329 !important;
  margin-bottom: 16px !important;
  border: 1px solid #cbd5e1 !important;
}

.ko-article-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ko-article-card-body {
  padding: 0 4px !important;
  flex: 1 1 auto !important;
}

.ko-article-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

.ko-article-excerpt {
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-wrap: pretty !important;
  text-decoration: none !important;
}

.ko-article-card-footer {
  margin-top: 18px !important;
  padding: 12px 4px 0 4px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.ko-card-action-link {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

.ko-article-card:hover .ko-card-action-link,
.ko-tool-card:hover .ko-card-action-link {
  color: #e11d48 !important;
}

/* 2. Section Bands (Full Width) */
.ko-section-band {
  padding: 72px 0;
}

.ko-section-band-alt {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.ko-section-band-white {
  background: #ffffff;
  padding: 72px 0 60px 0;
  border: none;
}

.ko-sec-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
  width: 100%;
}

/* 3. Projects 2-Col */
.ko-projects-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .ko-section-band {
    padding: 48px 0 !important;
  }

  .ko-section-band-white {
    padding: 48px 0 36px 0 !important;
  }

  .ko-sec-header-bar {
    margin-bottom: 18px !important;
  }

  .ko-projects-2col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

.ko-proj-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ko-proj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.12);
  border-color: #94a3b8;
}

.ko-proj-browser-frame {
  background: #0b1329;
  border-bottom: 1px solid #e2e8f0;
}

.ko-proj-browser-bar {
  height: 30px;
  background: #0b1329;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  border-bottom: 1px solid #1e293b;
}

.ko-proj-browser-dots {
  display: flex;
  gap: 5px;
}

.ko-proj-browser-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  display: inline-block;
}

.ko-proj-browser-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.ko-proj-preview-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

.ko-proj-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.ko-proj-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.ko-proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

@media (max-width: 480px) {
  .ko-proj-card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.ko-proj-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.ko-proj-meta-tag {
  font-size: 11px;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ko-proj-desc {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.ko-proj-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.ko-proj-card:hover .ko-proj-link {
  color: var(--ko-primary) !important;
}

/* 4. Tools 3-Col (The Recommended Stack) */
.ko-tools-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 960px) {
  .ko-tools-3col {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .ko-tools-3col {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.ko-tool-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ko-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.ko-tool-tag {
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  display: block;
  margin-bottom: 6px;
}

.ko-tool-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}

.ko-tool-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 18px 0;
  text-wrap: pretty;
}

.ko-tool-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.ko-tools-footer-row {
  text-align: center;
  margin-top: 16px;
}

.ko-tools-all-link {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.ko-tools-all-link:hover {
  color: var(--ko-primary);
}

.ko-rule-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--ko-primary);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.ko-rule-title {
  font-size: 17.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.ko-rule-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Multi-Column Structured Footer (Deep Navy Authority)
   ========================================================================== */
.site-footer,
.site-footer .site-info,
.site-footer .inside-site-info {
  background-color: #0b1329 !important;
  color: #94a3b8 !important;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

.site-footer .site-info {
  padding: 64px 24px 28px 24px !important;
  text-align: left !important;
}

.site-footer .inside-site-info {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

.site-content,
.inside-article,
#page,
#content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.ko-footer-grid {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  text-align: left;
}

@media (max-width: 900px) {
  .ko-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .ko-footer-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .site-footer .site-info {
    padding: 44px 16px 20px 16px !important;
  }

  .ko-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ko-footer-brand-col {
    grid-column: span 1;
  }
}

.ko-footer-brand-link {
  display: inline-block;
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none !important;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.ko-footer-logo-first {
  color: #ffffff !important;
}

.ko-footer-logo-last {
  color: #ff4d4d !important;
}

.ko-footer-desc {
  font-size: 14px;
  color: #94a3b8 !important;
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

.ko-footer-heading {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  margin: 0 0 16px 0;
}

.ko-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ko-footer-list li a {
  font-size: 14px;
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.ko-footer-list li a:hover {
  color: #ffffff !important;
}

.ko-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
  color: #64748b !important;
}

/* ==========================================================================
   Floating Back to Top Button (Circular Brand Red Button)
   ========================================================================== */
.ko-back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  background-color: #ff4d4d !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 77, 77, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.ko-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ko-back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.ko-back-to-top:hover {
  background-color: #e11d48 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5) !important;
}

.ko-back-to-top:active {
  transform: translateY(0) !important;
}

@media (max-width: 640px) {
  .ko-back-to-top {
    bottom: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Single Post Article Template
   ========================================================================== */
body.single .inside-article {
  max-width: 840px !important;
  margin: 28px auto !important;
  padding: 32px 48px 32px 48px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

@media (max-width: 768px) {
  body.single .inside-article {
    margin: 16px auto !important;
    padding: 24px 20px 24px 20px !important;
    border-radius: 10px !important;
  }
}

body.single .entry-header {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

body.single .ko-single-cat-badge {
  margin-bottom: 12px !important;
  display: inline-block !important;
}

body.single .ko-single-cat-badge a {
  display: inline-flex !important;
  align-items: center !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  font-size: 11.5px !important;
  font-weight: 750 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 4px 10px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}

body.single .ko-single-cat-badge a:hover {
  background: #0b1329 !important;
  color: #ffffff !important;
}

body.single .entry-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: clamp(28px, 4.5vw, 38px) !important;
  font-weight: 850 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
}

body.single .entry-meta {
  display: none !important;
}

body.single .featured-image.page-header-image-single {
  margin-top: 20px !important;
  margin-bottom: 32px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08) !important;
  aspect-ratio: 16 / 9 !important;
  background-color: #0b1329 !important;
}

body.single .featured-image.page-header-image-single img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  aspect-ratio: 16 / 9 !important;
  display: block !important;
  border-radius: 9px !important;
}

body.single .entry-content {
  font-size: 17px !important;
  line-height: 1.8 !important;
  color: #334155 !important;
}

body.single .entry-content p {
  margin-bottom: 20px !important;
}

body.single .entry-content>*:last-child {
  margin-bottom: 0 !important;
}

body.single .entry-content h2 {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  margin-top: 44px !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
}

body.single .entry-content h3 {
  font-size: 19px !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
}

body.single .entry-content blockquote {
  border-left: 3px solid #ff4d4d !important;
  padding: 14px 22px !important;
  background: #f8fafc !important;
  border-radius: 0 8px 8px 0 !important;
  margin: 28px 0 !important;
  font-size: 16.5px !important;
  color: #475569 !important;
  font-style: italic !important;
  line-height: 1.65 !important;
}

body.single .entry-content pre {
  background: #0b1329 !important;
  color: #f8fafc !important;
  padding: 20px 24px !important;
  border-radius: 8px !important;
  overflow-x: auto !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 28px 0 !important;
}

body.single .entry-content code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-size: 14.5px !important;
}

body.single .entry-content pre code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  font-size: inherit !important;
}

body.single .entry-footer {
  display: none !important;
}

/* Author Box at Bottom of Article */
body.single .ko-author-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 22px 24px !important;
  margin-top: 28px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
}

body.single .ko-author-box .ko-author-avatar-wrap {
  flex-shrink: 0 !important;
}

body.single .ko-author-box .ko-author-avatar {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  display: block !important;
}

body.single .ko-author-box .ko-author-details {
  flex-grow: 1 !important;
}

body.single .ko-author-box .ko-author-name {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: -0.02em !important;
}

body.single .ko-author-box .ko-author-bio {
  font-size: 14.5px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 0 16px 0 !important;
}

body.single .ko-author-box .ko-author-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

body.single .ko-author-box .ko-author-pills {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

body.single .ko-author-box a.ko-author-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 5px 11px !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

body.single .ko-author-box a.ko-author-pill svg {
  color: #64748b !important;
  transition: color 0.15s ease !important;
}

body.single .ko-author-box a.ko-author-pill:hover {
  border-color: #94a3b8 !important;
  color: #e11d48 !important;
  transform: translateY(-1px) !important;
}

body.single .ko-author-box a.ko-author-pill:hover svg {
  color: #e11d48 !important;
}

body.single .ko-author-box .ko-author-socials {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.single .ko-author-box a.ko-author-social-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

body.single .ko-author-box a.ko-author-social-btn:hover {
  border-color: #94a3b8 !important;
  color: #0b1329 !important;
  transform: translateY(-1px) !important;
}

/* Mobile-Only Refinement (<640px) */
@media (max-width: 640px) {
  body.single .ko-author-box {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 20px 16px !important;
    gap: 14px !important;
  }

  body.single .ko-author-box .ko-author-avatar {
    width: 60px !important;
    height: 60px !important;
  }

  body.single .ko-author-box .ko-author-details {
    width: 100% !important;
  }

  body.single .ko-author-box .ko-author-bio {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 14px !important;
  }

  body.single .ko-author-box .ko-author-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body.single .ko-author-box .ko-author-pills {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  body.single .ko-author-box a.ko-author-pill {
    padding: 7px 4px !important;
    font-size: 11.5px !important;
    font-weight: 650 !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  body.single .ko-author-box a.ko-author-pill svg {
    width: 12px !important;
    height: 12px !important;
  }

  body.single .ko-author-box .ko-author-socials {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }
}

#comments,
.comments-area,
.comment-respond {
  display: none !important;
}

/* ==========================================================================
   Category Archive Hubs Template (Unified Canvas & 16:9 Featured Cards)
   ========================================================================== */
body.category,
body.archive,
body.search {
  background: #ffffff !important;
}

body.category .site-content,
body.archive .site-content,
body.search .site-content {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

body.category #primary,
body.archive #primary,
body.search #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.category .site-main,
body.archive .site-main,
body.search .site-main {
  margin-bottom: 0 !important;
}

body.category .page-header,
body.archive .page-header,
body.search .page-header {
  display: none !important;
}

.ko-archive-page {
  width: 100%;
  background: #ffffff;
  padding: 42px 0 58px 0;
}

.ko-archive-header {
  margin-bottom: 32px;
}

.ko-archive-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.ko-archive-desc {
  font-size: 17px;
  color: #64748b;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
}

.ko-archive-desc p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.ko-archive-content .ko-articles-3col {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
}

@media (max-width: 900px) {
  .ko-archive-content .ko-articles-3col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  .ko-archive-content .ko-articles-3col {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

/* Category Archive Cards - Clean Framed Card with 16:9 Thumbnail */
body.category a.ko-article-card,
body.archive a.ko-article-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

body.category a.ko-article-card:hover,
body.archive a.ko-article-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1) !important;
  border-color: #cbd5e1 !important;
  text-decoration: none !important;
}

body.category a.ko-article-card *,
body.archive a.ko-article-card * {
  text-decoration: none !important;
}

.ko-article-thumb-wrap {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #0b1329 !important;
  margin-bottom: 16px !important;
  border: 1px solid #cbd5e1 !important;
}

.ko-article-thumb-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ko-article-card-body {
  padding: 0 4px !important;
  flex: 1 1 auto !important;
}

.ko-article-card-body .ko-article-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

.ko-article-card-body .ko-article-excerpt {
  font-size: 14px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-wrap: pretty !important;
  text-decoration: none !important;
}

.ko-article-card-footer {
  margin-top: 18px !important;
  padding: 12px 4px 0 4px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.ko-article-card-footer .ko-card-action-link {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

body.category a.ko-article-card:hover .ko-card-action-link,
body.archive a.ko-article-card:hover .ko-card-action-link {
  color: #e11d48 !important;
}

.ko-archive-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 16px;
}

/* Category Archive Pagination */
.ko-archive-content .pagination,
.ko-archive-content .nav-links {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 48px !important;
}

.ko-archive-content .page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.ko-archive-content .page-numbers:hover,
.ko-archive-content .page-numbers.current {
  background: #0b1329 !important;
  border-color: #0b1329 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Custom 404 Error Page (Clean 3-Pillar Sitemap)
   ========================================================================== */
body.error404 {
  background: #ffffff !important;
}

body.error404 .site-content {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

body.error404 #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.error404 .site-main {
  margin-bottom: 0 !important;
}

body.error404 .page-header {
  display: none !important;
}

.ko-404-page {
  width: 100%;
  background: #ffffff;
  padding: 42px 0 58px 0;
}

.ko-404-header {
  margin-bottom: 36px;
}

.ko-404-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.ko-404-desc {
  font-size: 17px;
  color: #64748b;
  line-height: 1.6;
  max-width: 100%;
  margin: 0;
}

.ko-404-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  margin-bottom: 40px !important;
}

@media (max-width: 900px) {
  .ko-404-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 640px) {
  .ko-404-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

a.ko-404-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 26px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

a.ko-404-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.1) !important;
  border-color: #cbd5e1 !important;
  text-decoration: none !important;
}

a.ko-404-card,
a.ko-404-card:hover,
a.ko-404-card:focus,
a.ko-404-card:active {
  text-decoration: none !important;
  color: inherit !important;
}

a.ko-404-card *,
a.ko-404-card:hover * {
  text-decoration: none !important;
}

.ko-404-card-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.ko-404-card-icon {
  color: #e11d48 !important;
  flex-shrink: 0 !important;
}

.ko-404-card-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
}

.ko-404-card-desc {
  font-size: 14.5px !important;
  color: #64748b !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-wrap: pretty !important;
}

.ko-404-card-footer {
  margin-top: 22px !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
}

.ko-404-card .ko-card-action-link {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

a.ko-404-card:hover .ko-card-action-link {
  color: #e11d48 !important;
}

.ko-404-action-bar {
  text-align: center !important;
  margin-top: 8px !important;
}

/* ==========================================================================
   2026 Editorial Components: Key Takeaways, Tables & FAQ Accordions
   ========================================================================== */

/* ==========================================================================
   2026 Editorial Components: The Short Version (Option 2: Stamped Dark Badge)
   ========================================================================== */

.ko-takeaways-box {
  position: relative !important;
  margin: 46px 0 36px 0 !important;
  border: 1.5px solid #0f172a !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  padding: 36px 28px 26px 28px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.single .entry-content .ko-takeaways-box h2,
body:not(.home) .entry-content .ko-takeaways-box h2,
body.single .entry-content .ko-takeaways-badge,
.ko-takeaways-badge,
.ko-takeaways-box h2 {
  position: absolute !important;
  top: -17px !important;
  left: 22px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: 0.07em !important;
  line-height: 1 !important;
  padding: 9px 20px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  display: inline-block !important;
  z-index: 2 !important;
}

body.single .entry-content .ko-takeaways-box h2::before,
body.single .entry-content .ko-takeaways-box h2::after,
.ko-takeaways-box h2::before,
.ko-takeaways-box h2::after {
  display: none !important;
}

body:not(.home) .entry-content .ko-takeaways-box ul,
.ko-takeaways-box ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

body:not(.home) .entry-content .ko-takeaways-box ul li,
.ko-takeaways-box ul li {
  position: relative !important;
  padding-left: 26px !important;
  font-size: 17.5px !important;
  line-height: 1.65 !important;
  color: inherit !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

body:not(.home) .entry-content .ko-takeaways-box ul li::before,
.ko-takeaways-box ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 7px !important;
  width: 15px !important;
  height: 15px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 !important;
}

body:not(.home) .entry-content .ko-takeaways-box strong,
.ko-takeaways-box strong {
  color: #0f172a !important;
  font-weight: 750 !important;
}

/* Comparison Table */
.ko-table-wrapper {
  width: 100% !important;
  overflow: hidden !important;
  margin: 28px 0 !important;
  border: 1px solid #0b1329 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

table.ko-compare-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  border: none !important;
}

table.ko-compare-table thead tr {
  background: #0b1329 !important;
  color: #ffffff !important;
}

table.ko-compare-table th {
  padding: 14px 16px !important;
  font-weight: 750 !important;
  text-align: left !important;
  color: #ffffff !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  background: #0b1329 !important;
}

table.ko-compare-table tbody tr {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  transition: background 0.1s ease !important;
}

table.ko-compare-table tbody tr:nth-child(even) {
  background: #f8fafc !important;
}

table.ko-compare-table tbody tr:last-child {
  background: #f1f5f9 !important;
  font-weight: 800 !important;
  border-bottom: none !important;
}

table.ko-compare-table td {
  padding: 12px 16px !important;
  color: #334155 !important;
  border: none !important;
  vertical-align: middle !important;
}

/* FAQ Accordion Section: Open Minimalist Editorial Style */
.faq-section {
  display: flex !important;
  flex-direction: column !important;
  margin: 28px 0 44px 0 !important;
  border-top: 1px solid #e2e8f0 !important;
}

details.faq-item {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
}

details.faq-item[open] {
  border-bottom-color: #cbd5e1 !important;
  background: transparent !important;
  box-shadow: none !important;
}

summary.faq-question {
  padding: 18px 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  user-select: none !important;
  transition: color 0.15s ease !important;
}

summary.faq-question:hover {
  color: #e11d48 !important;
}

summary.faq-question::-webkit-details-marker {
  display: none !important;
}

summary.faq-question::after {
  content: "+" !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #e11d48 !important;
  line-height: 1 !important;
  margin-left: 16px !important;
  flex-shrink: 0 !important;
}

details.faq-item[open] summary.faq-question::after {
  content: "−" !important;
}

.faq-content {
  padding: 0 0 20px 0 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
  border-top: none !important;
  margin: 0 !important;
}

.faq-content p {
  margin: 0 !important;
  color: #475569 !important;
}

/* ==========================================================================
   16. Native Collapsible Table of Contents (TOC)
   ========================================================================== */
.ko-toc-details {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--ko-radius, 12px) !important;
  margin: 28px 0 32px 0 !important;
  padding: 16px 20px !important;
  display: block !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ko-toc-details:hover {
  border-color: #cbd5e1 !important;
}

.ko-toc-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  list-style: none !important;
  user-select: none !important;
  outline: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.ko-toc-summary::-webkit-details-marker {
  display: none !important;
}

.ko-toc-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.ko-toc-label svg {
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.ko-toc-toggle {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.ko-toc-toggle-text::before {
  content: "SHOW" !important;
}

details.ko-toc-details[open] .ko-toc-toggle-text::before {
  content: "HIDE" !important;
}

.ko-toc-chevron {
  transition: transform 0.25s ease !important;
  color: #64748b !important;
}

details.ko-toc-details[open] .ko-toc-chevron {
  transform: rotate(180deg) !important;
}

.ko-toc-divider {
  border-top: 1px dashed #e2e8f0 !important;
  margin: 12px 0 10px 0 !important;
}

/* Strict reset for TOC UL & LI inside .entry-content */
body .entry-content .ko-toc-details ul,
body:not(.home) .entry-content .ko-toc-details ul,
.ko-toc-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body .entry-content .ko-toc-details ul li,
body:not(.home) .entry-content .ko-toc-details ul li,
.ko-toc-item {
  margin: 0 !important;
  padding: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

body .entry-content .ko-toc-details ul li::before,
body:not(.home) .entry-content .ko-toc-details ul li::before,
body .entry-content .ko-toc-details ul li::after,
body:not(.home) .entry-content .ko-toc-details ul li::after {
  content: none !important;
  display: none !important;
}

.ko-toc-item-arrow {
  color: #94a3b8 !important;
  margin-top: 3px !important;
  flex-shrink: 0 !important;
  user-select: none !important;
  transition: color 0.15s ease !important;
}

body .entry-content .ko-toc-details a,
body:not(.home) .entry-content .ko-toc-details a,
.ko-toc-link {
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  background: none !important;
  line-height: 1.4 !important;
  transition: color 0.15s ease !important;
}

body .entry-content .ko-toc-details .ko-toc-item:hover a,
body:not(.home) .entry-content .ko-toc-details .ko-toc-item:hover a,
.ko-toc-item:hover .ko-toc-link {
  color: #e11d48 !important;
  text-decoration: none !important;
}

.ko-toc-item:hover .ko-toc-item-arrow {
  color: #e11d48 !important;
}

/* Smooth anchor jump offset */
h2[id] {
  scroll-margin-top: 90px !important;
}

/* ==========================================================================
   17. Single Post "More in [Category]" Related Posts Grid
   ========================================================================== */
.ko-related-posts-section {
  margin: 44px 0 36px 0 !important;
  padding-top: 36px !important;
  border-top: 1px solid #e2e8f0 !important;
}

.ko-related-heading {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: clamp(20px, 3vw, 24px) !important;
  font-weight: 750 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  letter-spacing: -0.025em !important;
}

.ko-articles-2col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin-top: 16px !important;
}

@media (max-width: 768px) {
  .ko-articles-2col {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* Strictly hide any default GeneratePress page header featured images on static pages */
.page .page-header-image,
.page .page-header-image-single,
.page .featured-image.page-header-image {
  display: none !important;
}