/*
Theme Name: Klenty Blog
Theme URI: https://klenty.com
Author: Klenty
Author URI: https://klenty.com
Description: Clean SaaS blog theme for Klenty featuring an Apple-style blog home (featured post, filter pills, grid), a Klenty mega-nav, sticky TOC, sticky CTA rail, FAQ accordion, author bio, related posts, and the Klenty footer.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: klenty-blog
Tags: blog, three-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

  :root {
    --bg: #ffffff;
    --bg-subtle: #fafafa;
    --text: #0a0a0a;
    --text-2: #404040;
    --text-3: #737373;
    --text-4: #a3a3a3;
    --border: #ededed;
    --border-2: #e5e5e5;
    --accent: #5b5bd6;
    --accent-hover: #4a4ac4;
    --accent-soft: #f4f4ff;
    --radius: 10px;
    --radius-lg: 14px;
    --max: 1320px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
  }
  a { color: var(--text); text-decoration: none; }
  a:hover { color: var(--accent); }

  /* ============ KLENTY NAVBAR ============ */
:root {
  --navy: #05034e;
  --navy-2: #0e0d59;
  --navy-3: #0d144a;
  --navy-soft: #3d3c7d;
  --indigo: #504ee4;
  --indigo-2: #5856ce;
  --indigo-bg: #f2eeff;
  --indigo-bg-2: #ede8ff;
  --line: #e8e8f4;
  --card-line: #ebe8f3;
  --card-bg: #fcfbff;
  --nav-h: 68px;
}
body { padding-top: var(--nav-h); }

.navWrap {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: #fff;
  box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.04);
  z-index: 100;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav {
  max-width: 1344px;
  width: 100%;
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navLeft {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.navProductLogo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  height: var(--nav-h);
}
.navProductLogo svg.logoMark { width: 32px; height: 32px; }
.navProductLogo .logoText {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.6px;
  color: var(--navy);
}
.navTabList { display: flex; align-items: center; }
.navTabWrap { position: relative; }
.navTab {
  padding: 1.219rem 1rem;
  gap: 3.5px;
  cursor: pointer;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.navTab:hover { color: var(--indigo); }
.navTab .chev {
  width: 10px; height: 10px;
  margin-left: 4px;
  transition: transform 0.2s;
}
.navTabWrap:hover .navTab .chev { transform: rotate(180deg); }

/* Mega-dropdown */
.navDropdownWrap {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: rgba(29, 10, 87, 0.55);
  left: 0;
  top: var(--nav-h);
  display: none;
  animation: dropdownIn 0.25s ease-out;
}
.navTabWrap:hover .navDropdownWrap { display: block; }
@keyframes dropdownIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.navDropdown {
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0px 4px 32px 0px rgba(0, 0, 0, 0.04) inset;
}
.navDropdownInner {
  max-width: 1264px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 20px 3rem;
  display: flex;
  gap: 2rem;
}

/* Products mega */
.megaProductsLeft { display: flex; gap: 2.75rem; width: 74%; }
.megaProductsCards {
  min-width: 250px;
  max-width: 283px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.megaCard {
  padding: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--card-line);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.15s;
}
.megaCard.active,
.megaCard:hover {
  border-color: #D6D1EB;
  background: var(--indigo-bg-2);
}
.megaCardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.megaCardIcon {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.megaCardIcon svg { width: 34px; height: 34px; }
.megaCardHead svg { opacity: 0; transform: translateX(-8px); transition: all 0.2s; }
.megaCard:hover .megaCardHead svg,
.megaCard.active .megaCardHead svg { opacity: 1; transform: translateX(0); }
.megaCardTitle { color: var(--navy-3); font-weight: 600; margin: 0 0 2px; font-size: 15px; }
.megaCardDesc { color: var(--navy-soft); font-size: 0.875rem; line-height: 1.3; margin: 0; }
.megaProductsPoints { padding-right: 1rem; width: 100%; }
.megaPointsHeading {
  color: #B0AFCC;
  font-size: 0.875rem;
  font-weight: 500;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin: 0 0 1.5rem;
}
.megaPointsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem;
}
.megaPoint {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  align-items: flex-start;
}
.megaPointIcon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.megaPointIcon svg { width: 28px; height: 28px; }
.megaPointHead {
  color: var(--navy-2);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: font-weight 0.15s;
}
.megaPoint:hover .megaPointHead { font-weight: 600; color: var(--indigo); }
.megaPointHead .newTag {
  padding: 1px 6px;
  border-radius: 28px;
  background: #1AA36B;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.megaPointDesc { color: var(--navy-soft); font-size: 0.75rem; margin: 0; line-height: 1.4; }

.megaProductsRight { width: 26%; }
.megaVideoCard {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d2c76 100%);
  border-radius: 8px;
  aspect-ratio: 16/10;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.megaVideoCard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.5), transparent 50%);
}
.megaVideoPlay {
  width: 56px; height: 56px;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}
.megaVideoHead {
  color: var(--navy-2);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 6px;
}
.megaVideoDesc {
  color: var(--navy-soft);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

/* Why Klenty mega */
.megaWhyLeft {
  display: flex;
  gap: 3rem;
  width: 60%;
  padding-right: 2.5rem;
  box-shadow: 18px 0 32px rgba(0,0,0,0.02);
}
.megaWhyVideo { width: 45%; }
.megaWhyVideoBox {
  padding: 1.25rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 100%);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}
.megaWhyVideoInner {
  background: rgba(91, 91, 214, 0.3);
  border-radius: 8px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}
.megaWhyVideoTitle { color: #090927; font-weight: 700; margin: 0 0 4px; font-size: 15px; }
.megaWhyVideoDesc { color: var(--navy-soft); font-size: 0.75rem; max-width: 250px; margin: 0 0 0.75rem; line-height: 1.4; }
.megaLearnMore {
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.megaLearnMore:hover { color: var(--indigo); }
.megaLearnMore::after { content: '→'; transition: transform 0.2s; }
.megaLearnMore:hover::after { transform: translateX(4px); }

.megaWhyPoints { max-width: 275px; width: 55%; }
.megaWhyPointsHead { color: var(--navy-2); font-weight: 600; margin: 0 0 0.5rem; font-size: 15px; }
.megaWhyLine { border: none; border-top: 1px solid var(--line); margin: 0 0 1.5rem; }
.megaWhyPointsList { display: flex; flex-direction: column; gap: 1.75rem; }

.megaWhyRight {
  width: 40%;
  padding-left: 2rem;
}
.megaWhyRightLabel { color: var(--navy-2); font-size: 0.875rem; font-weight: 600; margin: 0 0 1rem; letter-spacing: 0.5px; }
.megaWhyRightImg {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--indigo-bg) 0%, #ddd6fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--indigo);
}
.megaWhyRightDesc {
  color: var(--navy-2);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 1.25rem 0;
}
.megaWhyRightLink {
  color: var(--indigo);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.megaWhyRightLink::after { content: '→'; transition: transform 0.2s; }
.megaWhyRightLink:hover::after { transform: translateX(4px); }

/* Integrations mega */
.megaIntLeft {
  width: 60%;
  padding-right: 2.5rem;
  box-shadow: 18px 0 32px rgba(0,0,0,0.02);
}
.megaIntTitle { color: var(--navy-2); font-weight: 600; margin: 0 0 0.5rem; font-size: 15px; letter-spacing: 0.5px; }
.megaIntGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 2rem;
}
.megaIntRight { width: 40%; padding-left: 2rem; }
.megaIntBanner {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a3e 0%, #2d2c76 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* Resources mega */
.megaResLeft {
  width: 72%;
  padding-right: 2rem;
  box-shadow: 18px 0 32px rgba(0,0,0,0.02);
  display: flex;
  gap: 2rem;
}
.megaResBoxes {
  width: 32%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.megaResBox {
  display: block;
  padding: 1.25rem;
  background: var(--indigo-bg);
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s;
}
.megaResBox:hover { transform: translateY(-2px); }
.megaResBoxHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.megaResBoxIcon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.megaResBoxIcon svg { width: 40px; height: 40px; }
.megaResBoxArrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.megaResBoxTitle { color: var(--navy-3); font-weight: 600; margin: 0 0 4px; font-size: 15px; }
.megaResBoxDesc { color: var(--navy-soft); font-size: 0.8125rem; margin: 0; line-height: 1.4; }

.megaResPointsWrap { width: 68%; margin-top: 1rem; }
.megaResPointsList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
  margin-bottom: 1.5rem;
}
.megaResAllLink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--navy-2);
  font-weight: 500;
  text-decoration: none;
}
.megaResAllLink::after { content: '→'; transition: transform 0.3s; }
.megaResAllLink:hover::after { transform: translateX(6px); }

.megaResRight { width: 28%; padding-left: 2rem; }
.megaResRightImg {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #92400e;
}

/* Nav right side */
.navRight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navLogin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 400;
  padding: 8px 8px;
}
.navLogin:hover { color: var(--indigo); }
.navLogin::after {
  content: '→';
  opacity: 0;
  transform: translateX(-5px);
  transition: 0.25s;
  margin-left: 2px;
}
.navLogin:hover::after { opacity: 1; transform: translateX(0); }

/* Shimmer button — faithful port from shimmerButton.module.css */
.shimmerBtn {
  --spread: 120deg;
  --shimmer-color: #7C4EFF;
  --radius: 5px;
  --speed: 3s;
  --cut: 2px;
  position: relative;
  z-index: 0;
  cursor: pointer;
  padding: calc(0.25rem + 2px) calc(1.1rem + 2px);
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--indigo);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.75rem;
  letter-spacing: 0.27px;
  font-family: inherit;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.shimmerBtn:active { transform: translateY(1px); }
.shimmerSparkContainer {
  position: absolute;
  inset: 0;
  z-index: -30;
  filter: blur(5px);
  overflow: visible;
  container-type: size;
}
.shimmerSpark {
  position: absolute;
  inset: 0;
  aspect-ratio: 1 / 1;
  height: 100cqh;
  animation: shimmer-slide var(--speed) ease-in-out infinite alternate;
}
.shimmerSparkAngle {
  position: absolute;
  inset: -100%;
  background: conic-gradient(
    from calc(270deg - (var(--spread) * 0.5)),
    transparent 0,
    var(--shimmer-color) var(--spread),
    transparent var(--spread)
  );
  animation: spin-around calc(var(--speed) * 2) infinite linear;
}
.shimmerBackdrop {
  position: absolute;
  inset: var(--cut);
  z-index: -20;
  border-radius: 4px;
  border: 1px solid #e4e4ef;
  background: linear-gradient(#ededf7 0%, #fff 44%, #fff 100%);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.84);
}
.shimmerHighlight {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 -8px 10px rgba(255,255,255,0.12);
  transition: box-shadow 0.3s;
  pointer-events: none;
}
.shimmerBtn:hover .shimmerHighlight {
  box-shadow: inset 0 -6px 10px rgba(255,255,255,0.25);
}
@keyframes shimmer-slide {
  to { transform: translate(calc(100cqw - 100%), 0); }
}
@keyframes spin-around {
  0% { transform: translateZ(0) rotate(0deg); }
  15%, 35% { transform: translateZ(0) rotate(90deg); }
  65%, 85% { transform: translateZ(0) rotate(270deg); }
  100% { transform: translateZ(0) rotate(360deg); }
}

/* Primary Start Free Trial button */
.navBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: calc(0.2rem + 3px) 1.1rem;
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.navBtn:hover { background: #4338ca; }
.navBtn::after {
  content: '→';
  opacity: 0;
  transform: translateX(-3px);
  transition: 0.25s;
}
.navBtn:hover::after { opacity: 1; transform: translateX(0); }

.menuBtn {
  display: none;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}
.menuBtn svg { width: 26px; height: 26px; }

/* Mobile nav drawer */
.mobileNav {
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  height: 0;
  transition: height 0.3s ease;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mobileNav::-webkit-scrollbar { display: none; }
.mobileNavTabWrap { width: 100%; }
.mobileNavTab {
  padding: 1.25rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--navy-2);
  font-weight: 600;
  text-decoration: none;
}
.mobileNavTab .chev { transition: transform 0.3s; }
.mobileNavTab.active .chev { transform: rotate(90deg); }
.mobileNavDropdownWrap {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}
.mobileNavDropdown {
  padding: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobileNavLink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--indigo-bg);
  border-radius: 6px;
  text-decoration: none;
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 500;
}
.mobileNavLink .iconBox {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.mobileNavLink .iconBox svg { width: 28px; height: 28px; }
.mobileNavBtnList {
  display: flex;
  gap: 12px;
  margin: 20px 0 32px;
}
.mobileNavBtnList .navBtn { width: 100%; justify-content: center; }
.mobileNavBtnList .shimmerBtn { width: 100%; }

@media (max-width: 1180px) {
  .navTabList { display: none; }
  .navRight { display: none; }
  .menuBtn { display: inline-flex; }
}
  .btn-arrow::after {
    content: '→';
    font-weight: 400;
    transition: transform 0.15s;
  }
  .btn-arrow:hover::after { transform: translateX(2px); }

  /* ============ BREADCRUMB ============ */
  .crumb {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 32px 0;
    font-size: 13px;
    color: var(--text-4);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .crumb a { color: var(--text-4); }
  .crumb a:hover { color: var(--text-2); }
  .crumb span { color: var(--border-2); }

  /* ============ LAYOUT ============ */
  .layout {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 32px 80px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 56px;
    align-items: start;
  }

  /* ============ TOC ============ */
  .toc {
    position: sticky;
    top: 120px;
    font-size: 13.5px;
  }
  .toc-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-4);
    margin-bottom: 14px;
  }
  .toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .toc a {
    display: block;
    padding: 7px 12px;
    color: var(--text-3);
    line-height: 1.45;
    border-radius: 6px;
    transition: all 0.15s;
    border-left: 2px solid transparent;
  }
  .toc a:hover {
    color: var(--text);
    background: var(--bg-subtle);
  }
  .toc a.active {
    color: var(--text);
    font-weight: 500;
    background: var(--bg-subtle);
  }

  /* ============ ARTICLE ============ */
  article { min-width: 0; max-width: 720px; }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e8e8ff;
  }
  .pill-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }

  h1 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -1.4px;
    margin: 20px 0 24px;
    color: var(--text);
  }

  .meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
  }
  .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #5b5bd6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
  }
  .meta-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }
  .meta-name { font-size: 13.5px; font-weight: 500; color: var(--text); }
  .meta-sub { font-size: 12.5px; color: var(--text-3); }
  .meta-dot {
    width: 3px; height: 3px;
    background: var(--text-4);
    border-radius: 50%;
  }
  .meta-time { font-size: 12.5px; color: var(--text-3); }

  .hero {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius-lg);
    background:
      radial-gradient(circle at 30% 30%, #c7d2fe 0%, transparent 50%),
      radial-gradient(circle at 70% 70%, #ddd6fe 0%, transparent 50%),
      #f5f5ff;
    border: 1px solid var(--border);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .hero-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    font-size: 13px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-card-dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  }

  article p {
    margin: 0 0 18px;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.7;
  }
  article p strong { color: var(--text); font-weight: 600; }

  article h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.6px;
    margin: 56px 0 20px;
    color: var(--text);
    scroll-margin-top: 90px;
  }
  article h3 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 36px 0 12px;
    color: var(--text);
    scroll-margin-top: 90px;
  }

  article ul, article ol {
    margin: 0 0 20px;
    padding-left: 22px;
    color: var(--text-2);
  }
  article li {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.65;
  }
  article ol li::marker { color: var(--text-4); font-weight: 500; }
  article ul li::marker { color: var(--text-4); }

  /* Inline callout */
  .callout {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 36px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
  }
  .callout-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }
  .callout-body { flex: 1; }
  .callout-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
  }
  .callout h4 {
    margin: 0 0 6px;
    font-size: 15.5px;
    font-weight: 600;
  }
  .callout p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-3);
  }
  .callout-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .callout-link:hover { color: var(--accent-hover); }
  .callout-link::after {
    content: '→';
    transition: transform 0.15s;
  }
  .callout-link:hover::after { transform: translateX(2px); }

  /* Table — applies to manual .table-wrap, Gutenberg .wp-block-table, and bare <table> in post content */
  .table-wrap,
  .wp-block-table,
  article > figure.wp-block-table {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0 32px;
  }
  .wp-block-table table,
  .table-wrap table,
  article table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin: 0;
    border: none;
  }
  article th,
  article td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-right: none;
    border-left: none;
    border-top: none;
    vertical-align: top;
    color: var(--text-2);
    background: transparent;
  }
  article tbody tr:last-child td { border-bottom: none; }
  article thead th {
    background: var(--bg-subtle);
    font-weight: 500;
    color: var(--text-3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid var(--border);
  }
  /* Auto-bold the first column (acts as a row header) */
  article tbody td:first-child { color: var(--text); font-weight: 600; }
  article td strong { color: var(--text); font-weight: 600; }
  article tbody tr:hover td { background: #fafafa; }

  /* Step/figure */
  .steps {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin: 24px 0 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }
  .step-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
  }
  .step-text {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.5;
  }

  /* ============ FAQ ============ */
  .faq-section {
    margin-top: 64px;
  }
  .faq-heading {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 24px;
    color: var(--text);
  }
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
  }
  .faq-item[open] {
    border-color: #ddd;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  }
  .faq-q {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
    transition: background 0.15s;
  }
  .faq-q:hover { background: var(--bg-subtle); }
  .faq-q::-webkit-details-marker { display: none; }
  .faq-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
  }
  .faq-item[open] .faq-num {
    background: var(--accent);
    color: #fff;
  }
  .faq-text {
    flex: 1;
    line-height: 1.4;
  }
  .faq-toggle {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    position: relative;
    transition: transform 0.25s ease;
  }
  .faq-toggle::before,
  .faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--text-3);
    border-radius: 2px;
  }
  .faq-toggle::before {
    width: 12px;
    height: 1.5px;
    transform: translate(-50%, -50%);
  }
  .faq-toggle::after {
    width: 1.5px;
    height: 12px;
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.2s;
  }
  .faq-item[open] .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
  }
  .faq-a {
    padding: 0 22px 20px 66px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
  }
  .faq-a p { margin: 0; }

  @media (max-width: 640px) {
    .faq-heading { font-size: 22px; }
    .faq-q { padding: 14px 16px; gap: 12px; font-size: 15px; }
    .faq-a { padding: 0 16px 16px 52px; font-size: 14.5px; }
    .faq-num { width: 24px; height: 24px; font-size: 12px; }
  }

  /* ============ ABOUT AUTHOR ============ */
  .author-section {
    margin-top: 72px;
    padding-top: 8px;
  }
  .author-heading {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin: 0 0 20px;
    color: var(--text);
  }
  .author-card {
    background: linear-gradient(180deg, #f7f6ff 0%, #fbfaff 100%);
    border: 1px solid #ebeaf8;
    border-radius: var(--radius-lg);
    padding: 28px;
  }
  .author-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }
  .author-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
  }
  .author-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #5b5bd6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(91, 91, 214, 0.15);
  }
  .author-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .author-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.3px;
  }
  .author-card-role {
    font-size: 14.5px;
    color: var(--text-3);
  }
  .author-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    background: rgba(255,255,255,0.6);
    border: 1px solid transparent;
    transition: all 0.15s;
    flex-shrink: 0;
  }
  .author-linkedin:hover {
    background: #fff;
    border-color: var(--border-2);
    color: var(--text);
  }
  .li-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #5b5bd6;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
    font-family: Georgia, serif;
  }
  .author-bio {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
  }

  @media (max-width: 820px) {
    .author-card { padding: 20px; }
    .author-card-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
    }
    .author-photo { width: 52px; height: 52px; font-size: 17px; }
  }

  /* ============ BIG CTA BANNER ============ */
  .big-cta {
    margin-top: 64px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
  }
  .big-cta-inner {
    padding: 72px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .big-cta-title {
    margin: 0;
    color: var(--text);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.6px;
    line-height: 1.25;
    max-width: 720px;
  }
  .big-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 14px rgba(91, 91, 214, 0.25);
    transition: all 0.2s ease;
  }
  .big-cta-btn:hover {
    transform: translateY(-1px);
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 8px 22px rgba(91, 91, 214, 0.35);
    color: #fff;
  }

  @media (max-width: 640px) {
    .big-cta { margin-top: 48px; border-radius: 12px; }
    .big-cta-inner { padding: 48px 24px; gap: 24px; }
    .big-cta-title { font-size: 22px; letter-spacing: -0.3px; }
    .big-cta-btn { padding: 12px 24px; font-size: 13px; }
  }

  /* ============ RELATED BLOGS ============ */
  .related-section {
    margin-top: 64px;
  }
  .related-heading {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0 0 24px;
    color: var(--text);
  }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
  }
  .related-card:hover { transform: translateY(-3px); }
  .related-card:hover .related-title { color: var(--accent); }

  .related-thumb {
    width: 100%;
    height: 120px;
    border-radius: 12px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
  }
  .related-thumb-2,
  .related-thumb-3 {
    background: var(--bg-subtle);
  }
  /* Legacy decorative circles — hidden, kept for backwards compat */
  .thumb-deco { display: none; }
  .thumb-icon {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
  }
  .related-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .related-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
  }
  .related-time {
    font-size: 12px;
    color: var(--text-3);
  }
  .related-title {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
    color: var(--text);
    margin: 0;
    transition: color 0.15s;
  }

  @media (max-width: 820px) {
    .related-grid { grid-template-columns: 1fr; }
    .related-thumb { height: 140px; }
  }

  /* ============ CTA RAIL ============ */
  .rail {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .cta {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .cta:hover {
    border-color: var(--border-2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  }
  .cta-primary {
    background: #fff;
    border: 2px solid var(--accent);
    color: var(--text);
    padding: 28px;
  }
  .cta-primary:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 28px rgba(91, 91, 214, 0.18);
  }
  .cta-eyebrow {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .cta-primary .cta-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1px; }
  .cta:not(.cta-primary) .cta-eyebrow { color: var(--text-4); }

  .cta h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.3px;
  }
  .cta-primary h3 { color: var(--text); font-size: 19px; line-height: 1.3; margin-bottom: 12px; }
  .cta p {
    margin: 0 0 16px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-3);
  }
  .cta-primary p { color: var(--text-2); font-size: 14px; margin-bottom: 22px; }
  .cta .btn {
    width: 100%;
  }
  .cta-primary .btn {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    border-radius: 999px;
    padding: 13px 18px;
    font-weight: 600;
    font-size: 14px;
  }
  .cta-primary .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

  /* ============ FOOTER (Klenty) ============ */
  .footerWrap {
    padding: 5rem 20px 2.5rem;
    background: #F7F6FF;
    margin-top: 80px;
  }
  .footer {
    max-width: 1162px;
    width: 100%;
    display: flex;
    gap: 1.875rem;
    margin: 0 auto;
  }
  .footerLeft {
    width: 23%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .footerImgList {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .footerKlentyLogo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.8px;
    color: #2D2C76;
  }
  .footerKlentyLogo .brand-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #5b5bd6 0%, #4f46e5 100%);
    clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%, 30% 50%);
  }
  .footerG2Review {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #E8E8FC;
    border-radius: 8px;
    padding: 8px 12px;
    width: fit-content;
    font-size: 12px;
    color: #393885;
  }
  .footerG2Review .g2-mark {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff492c;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .footerG2Review .g2-stars { color: #ff8c1a; letter-spacing: -1px; }

  .footerLinkList {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .footerLink {
    text-decoration: none;
    color: #393885;
    font-size: 0.875rem;
    transition: font-weight 0.1s;
  }
  .footerLink:hover {
    color: #393885;
    font-weight: 500;
  }
  .footercertificateList {
    display: flex;
    gap: 0.875rem;
    margin-top: 5rem;
  }
  .footercertificate {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E8E8FC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #393885;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.5px;
  }
  .footerRight {
    width: 77%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .footerColumn {
    width: calc(25% - ((1.5rem * 3) / 4));
  }
  .footerColumnHeading {
    color: #393885;
    font-weight: 600;
    margin: 0 0 1rem;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .footerColumnHeading .col-icon {
    width: 22px;
    height: 22px;
    background: rgba(91, 91, 214, 0.1);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 12px;
  }
  .footerColumnSubHeading {
    color: #9696BD;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 0.5rem;
  }
  .footerRightLine {
    width: 100%;
    height: 0.6px;
    background: #D1D1EE;
    display: none;
  }
  .footerSplitColumn {
    width: calc(25% - ((1.5rem * 3) / 4));
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .footerSplitColumn .footerColumn {
    width: 100%;
  }
  .footerMobilecertificateList {
    margin-top: 2rem;
    gap: 1.125rem;
    display: none;
  }
  .footerBottom {
    max-width: 1162px;
    width: 100%;
    padding-top: 1.625rem;
    border-top: 1.007px solid #E8E8FC;
    display: flex;
    justify-content: space-between;
    gap: 1.875rem;
    margin: 3rem auto 0;
  }
  .footerBottomLeft {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .footerBottomLink {
    text-decoration: none;
    color: #2D2C76;
    font-size: 0.875rem;
  }
  .footerBottomLink:hover { color: var(--accent); }
  .footerBottomLeftLine {
    width: 1px;
    height: 14px;
    background-color: #B6B6DA;
  }
  .footerBottomText {
    color: #8585AD;
    font-size: 0.875rem;
    margin: 0;
  }

  @media (max-width: 768px) {
    .footer { flex-direction: column; }
    .footer > div { width: 100%; }
    .footerLeft {
      padding-bottom: 1.875rem;
      border-bottom: 0.6px solid #D1D1EE;
    }
    .footerImgList {
      flex-direction: row !important;
      justify-content: space-between;
      align-items: center;
    }
    .footercertificateList { display: none !important; }
    .footerColumn { width: calc(50% - (1.5rem / 2)); }
    .footerRightLine { display: block; }
    .footerSplitColumn {
      width: 100%;
      flex-direction: row !important;
    }
    .footerSplitColumn .footerColumn { width: 50%; }
    .footerMobilecertificateList { display: flex; }
    .footerBottom {
      flex-direction: column;
      align-items: center;
    }
  }

  /* Mobile TOC drawer trigger */
  .toc-mobile-toggle {
    display: none;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .toc-mobile-toggle::after {
    content: '▾';
    color: var(--text-3);
    font-size: 12px;
    transition: transform 0.2s;
  }
  .toc-mobile-toggle.open::after { transform: rotate(180deg); }

  /* ============ RESPONSIVE ============ */

  /* Small desktop / large tablet — hide CTA rail */
  @media (max-width: 1180px) {
    .layout {
      grid-template-columns: 200px minmax(0, 1fr);
      gap: 40px;
    }
    .rail { display: none; }
  }

  /* Tablet — collapse layout to single column */
  @media (max-width: 980px) {
    .layout {
      grid-template-columns: 1fr;
      padding: 24px;
      gap: 28px;
    }
    .toc {
      position: static;
      padding: 0;
      background: transparent;
    }
    .toc-label { display: none; }
    .toc ul {
      display: none;
      padding: 8px;
      background: var(--bg-subtle);
      border-radius: var(--radius);
      border: 1px solid var(--border);
      margin-top: 8px;
    }
    .toc ul.open { display: flex; flex-direction: column; }
    .toc-mobile-toggle { display: flex; }
  }

  /* Mobile portrait */
  @media (max-width: 640px) {
    .crumb { padding: 16px 16px 0; font-size: 12px; }
    .layout { padding: 20px 16px; gap: 24px; }

    h1 {
      font-size: 28px;
      letter-spacing: -0.8px;
      line-height: 1.15;
      margin: 16px 0 20px;
    }
    article h2 {
      font-size: 22px;
      margin: 44px 0 16px;
      letter-spacing: -0.4px;
    }
    article h3 {
      font-size: 17px;
      margin: 28px 0 10px;
    }
    article p, article li { font-size: 15.5px; }

    .meta-row {
      flex-wrap: wrap;
      gap: 8px;
      padding: 16px 0;
      margin-bottom: 28px;
    }
    .meta-dot { display: none; }
    .meta-time { width: 100%; padding-left: 44px; margin-top: -4px; }

    .hero {
      aspect-ratio: 16 / 10;
      margin-bottom: 32px;
      border-radius: 12px;
    }
    .hero-card {
      font-size: 12px;
      padding: 12px 14px;
    }

    .steps {
      grid-template-columns: 1fr;
      padding: 20px;
      gap: 14px;
    }

    .callout {
      flex-direction: column;
      gap: 12px;
      padding: 20px;
    }

    .table-wrap {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    table { min-width: 560px; }
    th, td { padding: 10px 12px; font-size: 13px; }

    .related-section { margin-top: 48px; }
    .related-heading { font-size: 20px; margin-bottom: 18px; }
    .related-thumb { height: 130px; }

    .author-section { margin-top: 56px; }
    .author-heading { font-size: 20px; }

    /* Footer */
    .footerWrap { padding: 48px 16px 24px; }
    .footerColumnHeading { font-size: 14px; }
    .footerBottom { padding-top: 20px; margin-top: 32px; gap: 16px; }
    .footerBottomLeft { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footerBottomText { font-size: 12px; text-align: center; }
  }

  /* Small mobile */
  @media (max-width: 420px) {
    .navProductLogo { font-size: 20px; }
    h1 { font-size: 26px; }
    article h2 { font-size: 20px; }
    .pill { font-size: 11px; padding: 3px 8px; }
    .avatar { width: 28px; height: 28px; font-size: 11px; }
    .meta-time { padding-left: 40px; font-size: 12px; }
    .hero-card {
      font-size: 11px;
      padding: 10px 12px;
    }
    .author-photo { width: 48px; height: 48px; font-size: 16px; }
    .author-card-name { font-size: 16px; }
    .footerColumn { width: 100% !important; }
    .footerSplitColumn .footerColumn { width: 100% !important; }
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  /* ============ APPLE-STYLE TOKENS ============ */
  :root {
    --apple-text:   #1d1d1f;
    --apple-text-2: #424245;
    --apple-text-3: #6e6e73;
    --apple-text-4: #86868b;
    --apple-line:   #d2d2d7;
    --apple-line-2: #e8e8ed;
    --apple-bg-tint: #f5f5f7;
    --apple-blue:   #0066cc;
  }

  /* Apple-style system font stack for the blog listing */
  .featured-hero, .filter-strip, .filter-divider, .blog-grid-section, .blog-pagination {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--apple-text);
  }

  /* ============ FEATURED POST HERO ============ */
  .featured-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 40px 24px;
  }
  .featured-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0 0 72px;
    border-bottom: 1px solid var(--apple-line-2);
  }
  .featured-hero-img {
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: 22px;
    overflow: hidden;
    background: var(--apple-bg-tint);
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .featured-hero-inner:hover .featured-hero-img { transform: scale(1.01); }
  .featured-hero-img-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--apple-text-3);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 28px rgba(0,0,0,0.06);
  }
  .featured-hero-text { padding: 0; }
  .featured-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--apple-text-3);
    margin-bottom: 20px;
  }
  .featured-hero-text h1 {
    font-size: clamp(32px, 3.6vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.022em;
    font-weight: 600;
    margin: 0 0 32px;
    color: var(--apple-text);
    transition: color 0.2s;
  }
  .featured-hero-inner:hover .featured-hero-text h1 { color: var(--apple-blue); }
  .featured-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
  }
  .featured-hero-meta .author { color: var(--apple-text); font-weight: 500; }
  .featured-hero-meta .read::before {
    content: "·";
    margin-right: 12px;
    color: var(--apple-text-4);
  }
  .featured-hero-meta .read { color: var(--apple-text-3); }

  /* ============ FILTER STRIP ============ */
  .filter-strip {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 40px 0;
  }
  .filter-strip-inner {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .filter-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--apple-bg-tint);
    color: var(--apple-text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .filter-arrow:hover {
    background: #ebebef;
    color: var(--apple-text);
  }
  .filter-arrow svg { width: 12px; height: 12px; }

  .filter-pills {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 400;
    color: var(--apple-text-2);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    border: none;
    letter-spacing: -0.01em;
  }
  .filter-pill:hover { background: var(--apple-bg-tint); color: var(--apple-text); }
  .filter-pill.active {
    background: var(--apple-text);
    color: #fff;
    font-weight: 500;
  }
  .filter-pill.active:hover { background: #000; color: #fff; }

  .filter-search {
    flex-shrink: 0;
    position: relative;
    width: 240px;
  }
  .filter-search input {
    width: 100%;
    background: var(--apple-bg-tint);
    border: 1px solid transparent;
    border-radius: 980px;
    padding: 9px 16px 9px 38px;
    font-size: 13px;
    font-family: inherit;
    color: var(--apple-text);
    outline: none;
    letter-spacing: -0.01em;
    transition: background 0.15s, border-color 0.15s;
  }
  .filter-search input::placeholder { color: var(--apple-text-3); }
  .filter-search input:focus {
    background: #fff;
    border-color: var(--apple-line);
  }
  .filter-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--apple-text-3);
    pointer-events: none;
  }

  .filter-divider {
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 0 40px;
  }
  .filter-divider hr {
    border: 0;
    border-top: 1px solid var(--apple-line-2);
    margin: 0;
  }

  /* ============ BLOG GRID SECTION ============ */
  .blog-grid-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 40px 96px;
  }
  .blog-grid-section .related-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px;
  }
  .blog-grid-section .related-card {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .blog-grid-section .related-card:hover { transform: translateY(-4px); }
  .blog-grid-section .related-card:hover .related-title { color: var(--apple-blue); }
  .blog-grid-section .related-thumb {
    height: 220px;
    border-radius: 18px;
    margin-bottom: 18px;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .blog-grid-section .related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }
  .blog-grid-section .related-tag {
    color: var(--apple-text-3);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
  }
  .blog-grid-section .related-time {
    color: var(--apple-text-4);
    font-size: 12px;
  }
  .blog-grid-section .related-time::before {
    content: "·";
    margin-right: 10px;
    color: var(--apple-text-4);
  }
  .blog-grid-section .related-title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.018em;
    color: var(--apple-text);
    transition: color 0.2s;
  }

  /* Thumbnail backgrounds — flat Apple grey tint */
  .thumb-grad-1,
  .thumb-grad-2,
  .thumb-grad-3,
  .thumb-grad-4,
  .thumb-grad-5,
  .thumb-grad-6 { background: var(--apple-bg-tint); }
  .related-thumb.has-grad {
    border: none;
    overflow: hidden;
  }
  .related-thumb.has-grad .thumb-glyph {
    position: relative;
    z-index: 2;
    font-size: 36px;
    color: var(--apple-text-4);
    font-weight: 300;
    filter: none;
  }

  /* ============ PAGINATION ============ */
  .blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--apple-line-2);
  }
  .blog-pagination a, .blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 400;
    color: var(--apple-text-2);
    border: none;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .blog-pagination a:hover { background: var(--apple-bg-tint); color: var(--apple-text); }
  .blog-pagination .current {
    background: var(--apple-text);
    color: #fff;
    font-weight: 500;
  }
  .blog-pagination .pg-arrow {
    background: var(--apple-bg-tint);
    color: var(--apple-text-2);
  }
  .blog-pagination .pg-arrow:hover { background: #ebebef; color: var(--apple-text); }

  @media (max-width: 980px) {
    .featured-hero { padding: 40px 24px 0; }
    .featured-hero-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
    .featured-hero-text h1 { font-size: 28px; }
    .filter-strip { padding: 28px 24px 0; }
    .filter-divider { padding: 0 24px; }
    .blog-grid-section { padding: 40px 24px 72px; }
    .blog-grid-section .related-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .filter-search { width: 200px; }
  }
  @media (max-width: 720px) {
    .featured-hero { padding: 28px 20px 0; }
    .featured-hero-text h1 { font-size: 26px; }
    .filter-strip { padding: 20px 20px 0; }
    .filter-divider { padding: 0 20px; }
    .blog-grid-section { padding: 32px 20px 56px; }
    .filter-arrow { display: none; }
    .filter-search {
      width: 100%;
      margin-top: 12px;
    }
    .filter-strip-inner { flex-wrap: wrap; }
    .filter-pills { width: 100%; order: 1; }
    .filter-search { order: 2; }
    .blog-grid-section .related-grid { grid-template-columns: 1fr; gap: 40px; }
    .blog-grid-section .related-thumb { height: 220px; }
  }

  /* ============ INLINE LINK VISIBILITY ============ */
  article > p a,
  article > ul a,
  article > ol a,
  article p a,
  article li a,
  article td a,
  article blockquote a,
  .entry-content p a,
  .entry-content li a,
  .entry-content td a,
  .entry-content blockquote a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(91, 91, 214, 0.4);
    font-weight: 500;
    transition: color 0.15s, text-decoration-color 0.15s;
  }
  article > p a:hover,
  article > ul a:hover,
  article > ol a:hover,
  article p a:hover,
  article li a:hover,
  article td a:hover,
  article blockquote a:hover {
    color: var(--accent-hover);
    text-decoration-color: var(--accent);
  }
  .related-card a, .related-card, .author-card a, .author-linkedin,
  .callout a, .callout-link, .toc a, .faq-item a, .big-cta a, .pill, .meta-info a {
    text-decoration: none;
  }

  /* ============ REAL THUMBNAILS IN HERO + CARDS ============ */
  .featured-hero-img,
  .related-thumb {
    overflow: hidden;
  }
  .featured-hero-img img,
  .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
  }
  .featured-hero-img:has(img) { background: transparent; }
  .featured-hero-img:has(img) .featured-hero-img-icon { display: none; }
  .related-thumb.has-grad:has(img) .thumb-glyph { display: none; }

  /* WordPress pagination (paginate_links) styled like manual pagination */
  .blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 980px;
    font-size: 13px;
    font-weight: 400;
    color: var(--apple-text-2);
    border: none;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .blog-pagination a.page-numbers:hover {
    background: var(--apple-bg-tint);
    color: var(--apple-text);
  }
  .blog-pagination .page-numbers.current {
    background: var(--apple-text);
    color: #fff;
    font-weight: 500;
  }
  .blog-pagination .page-numbers.prev,
  .blog-pagination .page-numbers.next {
    background: var(--apple-bg-tint);
    color: var(--apple-text-2);
  }
  .blog-pagination .page-numbers.prev:hover,
  .blog-pagination .page-numbers.next:hover {
    background: #ebebef;
    color: var(--apple-text);
  }

  /* Filter pills wrap fallback (when search form is a form element) */
  .filter-search form { width: 100%; }
