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

:root {
  --c-primary: #FF6B35;
  --c-primary-dark: #E85A24;
  --c-primary-light: #FFF0EB;
  --c-secondary: #4ECDC4;
  --c-secondary-dark: #35B8AF;
  --c-secondary-light: #E8FAF9;
  --c-accent: #FFD93D;
  --c-accent-dark: #F0C325;
  --c-violet: #9B59B6;
  --c-violet-light: #F4ECF7;
  --c-blue: #3498DB;
  --c-blue-light: #EBF5FB;
  --c-green: #27AE60;
  --c-green-light: #E9F7EF;
  --c-text: #1A1A2E;
  --c-text-muted: #5A6272;
  --c-text-light: #8C95A6;
  --c-bg: #FAFAF8;
  --c-white: #FFFFFF;
  --c-border: #E8E8E4;
  --c-border-light: #F2F2EE;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --font-body: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.7;
}

/* Keep Elementor from forcing extra widths in some setups */
.site-main { width: 100%; }

/* ── HEADER ── */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--c-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* WordPress Custom Logo */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.custom-logo-link img.custom-logo {
  max-height: 80px;
  width: auto;
  height: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: all 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--c-primary-light); color: var(--c-primary); }
.site-nav a.active { color: var(--c-primary); }
.nav-cta {
  background: var(--c-primary) !important;
  color: var(--c-white) !important;
  border-radius: 20px !important;
  padding: 6px 16px !important;
}
.nav-cta:hover { background: var(--c-primary-dark) !important; color: var(--c-white) !important; }

/* WordPress menu markup */
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav li { margin: 0; padding: 0; }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { color: var(--c-primary); }

/* ── BREADCRUMB (optional area) ── */
.breadcrumb-bar {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border-light);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-size: 13px;
  color: var(--c-text-light);
}
.breadcrumb li a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumb li a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: var(--c-text); font-weight: 600; }
.breadcrumb-sep { color: var(--c-border); font-size: 11px; }

/* ── COMMON ── */
.section { padding: 56px 0; }
.section-alt { background: var(--c-white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #FFF8F5 0%, #FFF5F0 50%, #FFF0EB 100%);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-text);
  margin-bottom: 16px;
}
.hero-text h1 span { color: var(--c-primary); }
.hero-desc {
  font-size: 17px;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 560px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid;
}
.badge-green { background: var(--c-green-light); color: var(--c-green); border-color: #A9DFBF; }
.badge-blue { background: var(--c-blue-light); color: var(--c-blue); border-color: #AED6F1; }
.badge-violet { background: var(--c-violet-light); color: var(--c-violet); border-color: #D7BDE2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255,107,53,0.30);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,53,0.38); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--c-white);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  border: 1.5px solid var(--c-border);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }

.stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--c-primary);
  line-height: 1.1;
}
.stat-label { font-size: 13px; color: var(--c-text-muted); font-weight: 600; margin-top: 3px; }

/* ── QUICK NAV ── */
.quick-nav { background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.quick-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  overflow-x: auto;
  gap: 4px;
  scrollbar-width: none;
}
.quick-nav-inner::-webkit-scrollbar { display: none; }
.qnav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.15s;
}
.qnav-link:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 36px; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-sub { font-size: 16px; color: var(--c-text-muted); max-width: 580px; line-height: 1.65; }

/* ── CATEGORY GRID ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--c-primary));
  transform: scaleX(0);
  transition: transform 0.2s;
}
.cat-card:hover { border-color: var(--card-accent, var(--c-primary)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--card-bg, var(--c-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cat-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--c-text); line-height: 1.3; }
.cat-card p { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; flex: 1; }
.cat-link { font-size: 13px; font-weight: 700; color: var(--card-accent, var(--c-primary)); display: flex; align-items: center; gap: 4px; }

/* ── HOW IT WORKS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  z-index: 0;
}
.step-box {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.step-box:hover { box-shadow: var(--shadow-md); }
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.step-box h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
.step-box p { font-size: 14px; color: var(--c-text-muted); line-height: 1.6; }

/* ── BENEFITS / 2-COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.section-header--tight { margin-bottom: 28px; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-md);
}
.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--c-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.benefit-icon--teal { background: var(--c-secondary-light); }
.benefit-icon--violet { background: var(--c-violet-light); }
.benefit-icon--blue { background: var(--c-blue-light); }
.benefit-item h3 { font-size: 15px; font-weight: 900; color: var(--c-text); margin-bottom: 4px; font-family: var(--font-display); }
.benefit-item p { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; }

.content-section { max-width: 780px; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0 0 12px;
}
.content-section p {
  font-size: 15.5px;
  color: var(--c-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ── RESPONSIVE ADDONS ── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { color: var(--c-white); margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.65; margin-bottom: 16px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--c-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--c-accent); }

/* Basic content defaults (Elementor will override when used) */
.entry-title {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 16px;
}
.entry-content { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.entry-content--narrow { max-width: 880px; }

.content-article {
  background: var(--c-white);
  border: 1px solid var(--c-border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 28px;
}
.content-header { margin-bottom: 18px; }
.content-meta { font-size: 13px; color: var(--c-text-light); font-weight: 600; }

/* WP content typography */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  color: var(--c-text);
  line-height: 1.25;
}
.entry-content h1 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; margin: 0 0 12px; }
.entry-content h2 { font-size: 22px; font-weight: 800; margin: 28px 0 10px; }
.entry-content h3 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; }
.entry-content p { color: var(--c-text-muted); font-size: 15.5px; line-height: 1.8; margin: 0 0 14px; }
.entry-content a { color: var(--c-primary); text-decoration: none; font-weight: 700; }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul,
.entry-content ol { margin: 0 0 16px 20px; color: var(--c-text-muted); }
.entry-content li { margin: 6px 0; }
.entry-content strong { color: var(--c-text); }

/* Make sure header never overlaps content */
.site-header + * { scroll-margin-top: 80px; }

/* ── ARCHIVES: POSTS GRID ── */
.archive-desc {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 820px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.post-card {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(255,107,53,0.35); }
.post-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.post-card__thumb { aspect-ratio: 4 / 3; background: var(--c-primary-light); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.post-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__placeholder { font-size: 40px; opacity: 0.8; }
.post-card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-family: var(--font-display); font-size: 16px; font-weight: 900; line-height: 1.25; margin: 0; }
.post-card__excerpt { font-size: 13px; color: var(--c-text-muted); line-height: 1.55; margin: 0; flex: 1; }
.post-card__cta { font-size: 13px; font-weight: 800; color: var(--c-primary); display: inline-flex; align-items: center; gap: 6px; }

.pagination { margin-top: 22px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text-muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.pagination .page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }
.pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); }

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .posts-grid { grid-template-columns: 1fr; }
}

/* FAQ (if you build it in Elementor using these classes) */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--c-white); border: 1.5px solid var(--c-border); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--c-bg); }
.faq-q[aria-expanded="true"] { color: var(--c-primary); background: var(--c-primary-light); }
.faq-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.25s;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--c-text-muted); line-height: 1.7; }
.faq-a.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ── UNIFIED NAVIGATION / CONTENT POLISH ── */
.site-nav .menu-item-has-children > a::after {
  content: '▾';
  margin-left: 6px;
  font-size: 10px;
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display: none;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 20;
}
.site-nav li { position: relative; }
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu a { white-space: normal; }

.content-article {
  padding: 32px;
}
.content-body > *:first-child { margin-top: 0; }
.content-body > *:last-child { margin-bottom: 0; }
.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.content-meta span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
  font-weight: 800;
}
.entry-featured-image {
  margin: 0 0 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  background: var(--c-primary-light);
}
.entry-featured-image__img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content blockquote,
.wp-block-quote,
blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--c-primary);
  background: #fff7f3;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  background: var(--c-white);
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--c-border);
  padding: 12px 14px;
  text-align: left;
}
.entry-content th,
.wp-block-table th {
  background: var(--c-primary-light);
  color: var(--c-text);
  font-weight: 800;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.entry-content figure {
  margin: 20px 0;
}
.entry-content figcaption,
.wp-caption-text,
.blocks-gallery-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-text-light);
  text-align: center;
}
.entry-content .wp-block-button__link,
.entry-content .button,
.entry-content button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-white);
  text-decoration: none;
  font-weight: 800;
  border: 0;
  box-shadow: 0 4px 16px rgba(255,107,53,0.25);
}
.entry-content .wp-block-button__link:hover,
.entry-content .button:hover,
.entry-content button:hover,
input[type="submit"]:hover {
  background: var(--c-primary-dark);
  color: var(--c-white);
  text-decoration: none;
}
.entry-content hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 28px 0;
}
.entry-content .wp-block-separator {
  border-bottom-color: var(--c-border);
}
.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
}

/* Orange navigation styling across site */
.pagination .page-numbers:hover,
.post-navigation a:hover,
.navigation a:hover,
.nav-links a:hover,
.page-links a:hover,
.wp-block-query-pagination a:hover,
.wp-block-categories a:hover,
.wp-block-archives a:hover,
.widget_nav_menu a:hover,
.widget_recent_entries a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.post-navigation {
  margin: 22px 0 10px;
}
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  min-width: 0;
}
.post-navigation a,
.navigation a,
.nav-links a,
.page-links a,
.wp-block-query-pagination a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,107,53,0.22);
  background: #fff8f5;
  color: var(--c-primary-dark);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.post-navigation .post-nav__label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--c-primary);
}
.post-navigation .post-nav__title {
  color: var(--c-text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
}

/* Listing cards */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.posts-grid {
  align-items: stretch;
}
.post-card {
  display: flex;
}
.post-card__thumb {
  border-bottom: 1px solid var(--c-border-light);
}
.post-card__body {
  padding: 16px;
  gap: 10px;
}
.post-card__title {
  color: var(--c-text);
}
.post-card__excerpt {
  font-size: 14px;
}

/* Related posts always 3 cols on desktop */
.related-posts {
  margin-top: 18px;
}
.related-posts__header {
  margin-bottom: 20px;
}
.posts-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Generic related blocks from content/plugins */
.related-posts,
.related-articles,
.jp-relatedposts,
ul.wp-block-latest-posts,
.wp-block-post-template,
.related {
  clear: both;
}
.related-articles .posts-grid,
.jp-relatedposts-items,
.wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.jp-relatedposts-post,
.wp-block-post-template > li,
.related-articles article {
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 12px;
}

/* Widgets / blocks / lists */
.wp-block-categories,
.wp-block-archives,
.widget ul,
.entry-content .wp-block-latest-posts {
  list-style: none;
  margin-left: 0;
}
.wp-block-categories li,
.wp-block-archives li,
.widget li,
.entry-content .wp-block-latest-posts li {
  margin: 0 0 10px;
}
.wp-block-categories a,
.wp-block-archives a,
.widget_nav_menu a,
.widget_recent_entries a,
.entry-content .wp-block-latest-posts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,107,53,0.2);
  background: #fff9f6;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
}

/* Better forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--c-text);
  background: var(--c-white);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

@media (max-width: 1024px) {
  .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .content-article {
    padding: 22px;
  }
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
  .site-nav .sub-menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }
}


/* ── V3: SINGLE POST / ANCHORS / RELATED POLISH ── */
.header-inner {
  height: 96px;
}
.custom-logo-link img.custom-logo {
  max-height: 80px;
}
.logo-link {
  font-size: 32px;
  gap: 12px;
}
.logo-icon {
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: 16px;
}

.entry-content--narrow {
  max-width: 1120px;
  padding-top: 34px;
  padding-bottom: 56px;
}
.content-article {
  border-radius: 28px;
  padding: 42px 46px;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 34px rgba(26,26,46,0.05);
}
.content-header {
  margin-bottom: 24px;
}
.content-header .entry-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.content-body {
  color: var(--c-text-muted);
}
.content-body > p:first-child {
  font-size: 20px;
  line-height: 1.8;
  color: #586178;
  max-width: 960px;
  margin-bottom: 20px;
}
.content-body h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-top: 34px;
  margin-bottom: 14px;
}
.content-body h3 {
  font-size: 28px;
  margin-top: 28px;
  margin-bottom: 12px;
}
.content-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 24px 0 10px;
  color: var(--c-text);
}
.content-body p,
.content-body li {
  font-size: 18px;
  line-height: 1.9;
}
.content-body ul,
.content-body ol {
  margin-left: 1.2rem;
}
.content-body ul li::marker,
.content-body ol li::marker {
  color: var(--c-primary);
  font-weight: 800;
}

/* Anchor links / in-post navigation styled like homepage pills */
.content-body a[href^="#"],
.content-body a[href*="#"]:not([href="#"]):not(.wp-block-button__link),
.content-body .wp-block-buttons a,
.content-body .page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin: 4px 8px 4px 0;
  border-radius: 999px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  border: 1.5px solid rgba(255,107,53,0.18);
  text-decoration: none;
  box-shadow: none;
}
.content-body a[href^="#"]:hover,
.content-body a[href*="#"]:not([href="#"]):not(.wp-block-button__link):hover,
.content-body .page-links a:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  text-decoration: none;
}
/* Avoid pill styling for text links inside main prose paragraphs except direct menu-like rows */
.content-body p a[href^="http"],
.content-body li a[href^="http"],
.content-body p a:not([href*="#"]),
.content-body li a:not([href*="#"]) {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--c-primary);
}
.content-body p a[href^="http"]:hover,
.content-body li a[href^="http"]:hover,
.content-body p a:not([href*="#"]):hover,
.content-body li a:not([href*="#"]):hover {
  color: var(--c-primary-dark);
  background: none;
}
/* Menu-like line of links generated by content editors */
.content-body p:has(> a + a),
.content-body p:has(> a + br + a) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.content-body p:has(> a + a) a,
.content-body p:has(> a + br + a) a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--c-primary-light);
  border: 1.5px solid rgba(255,107,53,0.18);
  color: var(--c-primary);
  font-weight: 800;
  text-decoration: none;
}
.content-body p:has(> a + a) a:hover,
.content-body p:has(> a + br + a) a:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

/* Image grids inside posts similar to homepage cards */
.content-body .wp-block-gallery,
.content-body .gallery,
.content-body .blocks-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.content-body .wp-block-image,
.content-body .gallery-item {
  margin: 0;
}
.content-body .wp-block-image img,
.content-body .gallery-item img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--c-border);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

/* Better related cards */
.related-posts {
  margin-top: 26px;
  padding-top: 8px;
}
.related-posts .section-title,
.related-articles h2,
.jp-relatedposts h3 {
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 16px;
}
.related-posts .posts-grid--related,
.related-articles .posts-grid,
.jp-relatedposts-items,
.related ul,
.related-posts ul,
.related-articles ul {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.related-posts .posts-grid--related > *,
.related-articles .posts-grid > *,
.jp-relatedposts-items > *,
.related ul > *,
.related-posts ul > *,
.related-articles ul > * {
  min-width: 0;
  width: 100%;
}
.related-posts .post-card,
.related-articles article,
.jp-relatedposts-post,
.related li,
.related-posts li,
.related-articles li {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.related-posts .post-card__link,
.related li > a,
.related-posts li > a,
.related-articles li > a,
.jp-relatedposts-post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.related-posts .post-card__thumb,
.related-articles img,
.related img,
.jp-relatedposts-post img,
.related li img,
.related-posts li img,
.related-articles li img {
  aspect-ratio: 1 / 1.08;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 14px;
  border-bottom: 1px solid var(--c-border-light);
}
.related-posts .post-card__body,
.related li .post-card__body,
.related-posts li .post-card__body,
.related-articles li .post-card__body {
  padding: 18px;
}
.related-posts .post-card__title,
.related li .post-card__title,
.related-posts li .post-card__title,
.related-articles li .post-card__title,
.jp-relatedposts-post-title {
  font-size: 20px;
  line-height: 1.22;
}
.related-posts .post-card__excerpt {
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .header-inner { height: 84px; }
  .custom-logo-link img.custom-logo { max-height: 80px; }
  .content-article { padding: 34px 32px; }
  .content-body .wp-block-gallery,
  .content-body .gallery,
  .content-body .blocks-gallery-grid,
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 72px; }
  .custom-logo-link img.custom-logo { max-height: 72px; }
  .content-article { padding: 26px 20px; border-radius: 22px; }
  .content-header .entry-title { font-size: clamp(28px, 8vw, 40px); }
  .content-body > p:first-child,
  .content-body p,
  .content-body li { font-size: 17px; }
  .content-body .wp-block-gallery,
  .content-body .gallery,
  .content-body .blocks-gallery-grid,
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul {
    grid-template-columns: 1fr !important;
  }
}


/* Elementor compatibility */
.elementor-page-main,
.elementor-page-main .elementor {
  min-height: 1px;
}

/* Content pages closer to homepage visual language */
.content-article--landing {
  max-width: 100%;
}

.content-body {
  color: var(--c-text);
}

.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: var(--font-display);
}

.content-body figure {
  margin: 0;
}

.content-body .wp-block-image,
.content-body .gallery-item,
.content-body .blocks-gallery-item {
  background: transparent;
}

/* Stronger TOC/anchor styling similar to homepage quick-nav */
.content-body p:has(> a + a),
.content-body p:has(> a + br + a),
.content-body .wp-block-paragraph:has(> a + a),
.content-body .wp-block-paragraph:has(> a + br + a) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.content-body p:has(> a + a) a,
.content-body p:has(> a + br + a) a,
.content-body .wp-block-paragraph:has(> a + a) a,
.content-body .wp-block-paragraph:has(> a + br + a) a {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff4ef;
  border: 1px solid rgba(255,107,53,0.22);
  color: var(--c-primary);
  font-weight: 900;
}

/* Related posts / plugin compatibility */
.related-posts,
.related-articles,
.jp-relatedposts {
  clear: both;
}

.related-posts .posts-grid--related,
.related-articles .posts-grid,
.related-articles-list,
.jp-relatedposts-items,
.related ul,
.related-posts ul,
.related-articles ul,
.jp-relatedposts-items-visual {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.related-posts .posts-grid--related > *,
.related-articles .posts-grid > *,
.related-articles-list > *,
.jp-relatedposts-items > *,
.related-posts ul > *,
.related-articles ul > * {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.related-posts img,
.related-articles img,
.jp-relatedposts img,
.related img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 320px;
  object-fit: contain !important;
}

.related-posts iframe,
.related-articles iframe,
.jp-relatedposts iframe {
  display: none !important;
}

.related-posts a,
.related-articles a,
.jp-relatedposts a {
  overflow: hidden;
}

@media (max-width: 1024px) {
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .related-articles-list,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul,
  .jp-relatedposts-items-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .related-posts .posts-grid--related,
  .related-articles .posts-grid,
  .related-articles-list,
  .jp-relatedposts-items,
  .related ul,
  .related-posts ul,
  .related-articles ul,
  .jp-relatedposts-items-visual {
    grid-template-columns: 1fr !important;
  }
}

/* ── V4 / 2.0 PERFORMANCE + ACCESSIBILITY LAYER ── */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  width: auto;
  height: auto;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: #fff;
  color: var(--c-text);
  border: 2px solid var(--c-primary);
  border-radius: 10px;
  z-index: 99999;
}

:focus-visible {
  outline: 3px solid rgba(255,107,53,0.45);
  outline-offset: 3px;
}

.header-inner { position: relative; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-white);
  color: var(--c-text);
  cursor: pointer;
}
.nav-toggle__icon { display: grid; gap: 4px; width: 20px; }
.nav-toggle__icon span { display: block; height: 2px; border-radius: 999px; background: currentColor; }

.qnav-link.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.logo-icon--footer { background: rgba(255,255,255,0.15); }
.footer-logo { color: var(--c-white); text-decoration: none; }
.footer-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--c-white);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat-row--spaced { margin-bottom: 12px; }
.cat-card--green { --card-accent: #27AE60; --card-bg: #E9F7EF; }
.cat-card--blue { --card-accent: #3498DB; --card-bg: #EBF5FB; }
.cat-card--violet { --card-accent: #9B59B6; --card-bg: #F4ECF7; }
.cat-card--red { --card-accent: #E74C3C; --card-bg: #FDEDEC; }
.cat-card[class*="cat-card--"] .cat-icon { background: var(--card-bg); }
.cat-card[class*="cat-card--"] .cat-link { color: var(--card-accent); }
.content-section > .btn-primary { margin-top: 8px; }

.archive-header { margin-bottom: 28px; }
.archive-desc p:last-child { margin-bottom: 0; }
.archive-search { max-width: 620px; margin-top: 18px; }
.empty-state,
.not-found-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.empty-state h2,
.not-found-card h1 { font-family: var(--font-display); margin-bottom: 10px; }
.empty-state p,
.not-found-card p { color: var(--c-text-muted); margin-bottom: 20px; }
.empty-state .search-form,
.not-found-card .search-form { max-width: 560px; margin: 20px auto; }
.not-found-section { min-height: 60vh; display: grid; align-items: center; }
.not-found-code { display: block; font: 900 clamp(54px, 10vw, 96px)/1 var(--font-display); color: var(--c-primary); opacity: .18; margin-bottom: -4px; }
.not-found-card .btn-primary { margin-top: 8px; }

.entry-featured-image__img,
.post-card__img { background: #fff; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    padding: 10px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-height: min(70vh, 560px);
    overflow: auto;
    z-index: 500;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { display: block; padding: 11px 12px; white-space: normal; }
  .site-nav .sub-menu {
    display: flex !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 0 0 14px !important;
    min-width: 0 !important;
  }
  .site-nav .sub-menu a { font-size: 13px; padding-block: 8px; }
  body.nav-open { overflow: hidden; }
  .empty-state, .not-found-card { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumb-bar,
  .quick-nav,
  .post-navigation,
  .related-posts,
  .btn-primary,
  .btn-secondary,
  .nav-toggle,
  .faq-q { display: none !important; }
  body, .content-article, .entry-content { background: #fff !important; box-shadow: none !important; border: 0 !important; }
  .entry-content, .content-article { max-width: none; padding: 0 !important; }
  .content-body img { max-width: 100% !important; break-inside: avoid; }
  a { color: #000 !important; text-decoration: none !important; }
}

/* 2.1.0 – category hubs + merged SEO gallery */
.archive-page-indicator,
.archive-count {
  margin-top: 8px;
  color: var(--c-text-light);
  font-size: 14px;
  font-weight: 700;
}
.archive-desc {
  max-width: 820px;
}
.archive-desc p {
  margin-top: 10px;
  color: var(--c-text-muted);
  font-size: 17px;
  line-height: 1.75;
}
.archive-seo-copy {
  max-width: 900px;
  margin: 52px auto 0;
  padding: 30px 34px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  background: var(--c-bg);
}
.archive-seo-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
}
.archive-seo-copy p {
  margin: 0 0 12px;
  color: var(--c-text-muted);
  font-size: 16px;
  line-height: 1.75;
}
.archive-seo-copy p:last-child {
  margin-bottom: 0;
}
.kd-merged-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 34px;
  padding: 0;
}
.kd-merged-gallery .wp-block-image {
  margin: 0;
  min-width: 0;
}
.kd-merged-gallery .wp-block-image > a {
  display: block;
  height: 100%;
}
.kd-merged-gallery__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--c-border-light);
  border-radius: 14px;
}
@media (max-width: 900px) {
  .kd-merged-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .archive-seo-copy { margin-top: 36px; padding: 24px 20px; }
  .kd-merged-gallery { grid-template-columns: 1fr; gap: 12px; }
}

/* ========================================================================== 
   2.2.0 — Modern editorial / playful redesign
   Keeps the existing lightweight rendering model and system-font stack.
   ========================================================================== */

:root {
  --kd-ink: #20202a;
  --kd-muted: #666676;
  --kd-soft: #8b8b98;
  --kd-paper: #fffdf9;
  --kd-card: #ffffff;
  --kd-line: #ece8e2;
  --kd-orange: #ff7043;
  --kd-orange-strong: #f35b2f;
  --kd-orange-soft: #fff0e9;
  --kd-violet: #7557d9;
  --kd-violet-soft: #f1edff;
  --kd-blue: #4285f4;
  --kd-blue-soft: #eaf3ff;
  --kd-mint: #239b78;
  --kd-mint-soft: #e7f8f1;
  --kd-rose: #d95b7b;
  --kd-rose-soft: #fff0f4;
  --kd-cyan: #218aa0;
  --kd-cyan-soft: #e8f7fa;
  --kd-yellow: #a66e05;
  --kd-yellow-soft: #fff6d8;
  --kd-neutral-soft: #f3f1ee;
  --kd-radius-xl: 34px;
  --kd-radius-lg: 26px;
  --kd-radius-md: 19px;
  --kd-shadow: 0 18px 50px rgba(32, 32, 42, .08);
  --kd-shadow-hover: 0 22px 60px rgba(32, 32, 42, .13);
}

body.kolorowanki-theme {
  background: var(--kd-paper);
  color: var(--kd-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.01em;
}

body.kolorowanki-theme::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--kd-orange), #ffc857 32%, #45b9a4 66%, var(--kd-violet));
  pointer-events: none;
  z-index: 999;
}

.container { max-width: 1220px; padding-inline: 28px; }

/* Header */
.site-header {
  background: rgba(255, 253, 249, .98);
  border-bottom: 1px solid rgba(32, 32, 42, .07);
  box-shadow: none;
}
.header-inner {
  max-width: 1220px;
  height: 74px;
  padding-inline: 28px;
  gap: 30px;
}
.logo-link {
  color: var(--kd-ink);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.04em;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--kd-orange);
  box-shadow: inset 0 -5px 12px rgba(0, 0, 0, .08);
}
.custom-logo-link img.custom-logo { max-height: 58px; }
.site-nav ul { gap: 2px; }
.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #595966;
  font-size: 13.5px;
  font-weight: 720;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--kd-orange-soft);
  color: var(--kd-orange-strong);
}

.breadcrumb-bar {
  background: transparent;
  border-bottom: 0;
}
.breadcrumb-inner { max-width: 1220px; padding: 10px 28px 0; }
.breadcrumb { font-size: 12.5px; }
.breadcrumb li a { color: var(--kd-soft); }

/* Shared modern typography */
.kd-section { padding: 84px 0; }
.kd-section-head { margin-bottom: 34px; }
.kd-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 42px;
  align-items: end;
}
.kd-section-head--compact { margin-bottom: 28px; }
.kd-section-head h2,
.kd-editorial-copy h2,
.kd-faq-grid h2 {
  margin: 0;
  color: var(--kd-ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}
.kd-section-head--compact h2 { font-size: clamp(28px, 3.4vw, 42px); }
.kd-section-head > p,
.kd-section-head--compact > p {
  margin: 0;
  color: var(--kd-muted);
  font-size: 15.5px;
  line-height: 1.75;
}
.kd-section-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--kd-orange-strong);
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* Home hero */
.kd-home-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 202, 122, .23), transparent 28%),
    radial-gradient(circle at 92% 22%, rgba(117, 87, 217, .10), transparent 25%),
    linear-gradient(180deg, #fffdf9 0%, #fff9f2 100%);
}
.kd-home-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -180px;
  bottom: -190px;
  border-radius: 50%;
  border: 58px solid rgba(255, 112, 67, .06);
  pointer-events: none;
}
.kd-home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 74px;
  align-items: center;
}
.kd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 19px;
  padding: 7px 11px;
  border: 1px solid rgba(32, 32, 42, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #575764;
  font-size: 12px;
  font-weight: 760;
}
.kd-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38a978;
  box-shadow: 0 0 0 4px rgba(56, 169, 120, .12);
}
.kd-home-hero h1 {
  max-width: 710px;
  margin: 0;
  color: var(--kd-ink);
  font-size: clamp(42px, 5.7vw, 72px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 900;
}
.kd-home-hero h1 span {
  color: var(--kd-orange-strong);
  white-space: nowrap;
}
.kd-home-hero__copy > p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--kd-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
}
.kd-hero-search {
  max-width: 690px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 7px 7px 7px 16px;
  border: 1px solid rgba(32, 32, 42, .10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 38px rgba(32, 32, 42, .08);
}
.kd-hero-search__icon {
  color: var(--kd-soft);
  font-size: 25px;
  line-height: 1;
}
.kd-hero-search input {
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--kd-ink);
  font: inherit;
  font-size: 14.5px;
}
.kd-hero-search input::placeholder { color: #9b9ba5; }
.kd-hero-search button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 13px;
  background: var(--kd-ink);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.kd-hero-search button:hover { background: #353541; }
.kd-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.kd-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.kd-button:hover { transform: translateY(-1px); text-decoration: none; }
.kd-button--primary {
  background: var(--kd-orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(243, 91, 47, .22);
}
.kd-button--primary:hover { background: var(--kd-orange-strong); color: #fff; }
.kd-button--ghost {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(32,32,42,.09);
  color: var(--kd-ink);
}
.kd-button--ghost:hover { background: #fff; color: var(--kd-ink); }
.kd-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 22px;
  color: #666671;
  font-size: 12px;
  font-weight: 700;
}

.kd-hero-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(112px, auto));
  gap: 12px;
  transform: rotate(1.2deg);
}
.kd-bento-card,
.kd-bento-stat {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(32, 32, 42, .07);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(32, 32, 42, .06);
}
.kd-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 19px;
  color: var(--kd-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.kd-bento-card:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: var(--kd-shadow); text-decoration: none; }
.kd-bento-card--large { grid-row: span 2; padding: 24px; }
.kd-bento-card__icon {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  font-size: 22px;
}
.kd-bento-card--large .kd-bento-card__icon { width: 62px; height: 62px; font-size: 30px; }
.kd-bento-card__meta {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.kd-bento-card strong { margin-top: 18px; font-size: 19px; line-height: 1.15; letter-spacing: -.035em; }
.kd-bento-card--large strong { font-size: 28px; }
.kd-bento-card > span:last-child { margin-top: 5px; color: rgba(32,32,42,.67); font-size: 12px; line-height: 1.45; }
.kd-bento-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 20px;
}
.kd-bento-stat strong { font-size: 28px; line-height: 1; letter-spacing: -.05em; }
.kd-bento-stat span { margin-top: 7px; color: rgba(32,32,42,.63); font-size: 11.5px; line-height: 1.35; }

/* Shared color surfaces */
.kd-tone-mint { background: var(--kd-mint-soft); }
.kd-tone-violet { background: var(--kd-violet-soft); }
.kd-tone-blue { background: var(--kd-blue-soft); }
.kd-tone-orange { background: var(--kd-orange-soft); }
.kd-tone-rose { background: var(--kd-rose-soft); }
.kd-tone-cyan { background: var(--kd-cyan-soft); }
.kd-tone-yellow { background: var(--kd-yellow-soft); }
.kd-tone-neutral { background: var(--kd-neutral-soft); }

/* Category overview */
.kd-section--categories { background: #fff; }
.kd-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kd-category-card {
  min-height: 164px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(32, 32, 42, .06);
  border-radius: 22px;
  color: var(--kd-ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.kd-category-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(32,32,42,.08); text-decoration: none; }
.kd-category-card__icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.08em;
}
.kd-category-card__copy { display: flex; flex-direction: column; gap: 5px; padding-right: 25px; }
.kd-category-card__copy strong { font-size: 18px; line-height: 1.15; letter-spacing: -.03em; }
.kd-category-card__copy small { color: rgba(32,32,42,.64); font-size: 12px; line-height: 1.5; }
.kd-category-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  color: rgba(32,32,42,.45);
  font-size: 18px;
}

/* Latest content */
.kd-section--latest { background: var(--kd-paper); }
.kd-latest-grid,
.kd-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.kd-latest-card,
.kd-post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--kd-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(32, 32, 42, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  content-visibility: auto;
  contain-intrinsic-size: 390px 390px;
}
.kd-latest-card:hover,
.kd-post-card:hover {
  transform: translateY(-4px);
  border-color: #ded8d0;
  box-shadow: var(--kd-shadow);
}
.kd-latest-card__link,
.kd-post-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.kd-latest-card__media,
.kd-post-card__media {
  position: relative;
  overflow: hidden;
  background: #faf8f4;
}
.kd-latest-card__media {
  aspect-ratio: 4 / 3;
  padding: 14px;
}
.kd-post-card__media {
  aspect-ratio: 1 / 1;
  padding: 16px;
}
.kd-latest-card__media .post-card__img,
.kd-post-card__media .post-card__img,
.kd-latest-card__media img,
.kd-post-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transition: transform .35s ease;
}
.kd-latest-card:hover img,
.kd-post-card:hover img { transform: scale(1.018); }
.kd-latest-card__badge {
  position: absolute;
  left: 13px;
  top: 13px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #4f4f5b;
  font-size: 10.5px;
  font-weight: 820;
}
.kd-latest-card__body { padding: 17px 18px 19px; }
.kd-latest-card__body h3,
.kd-post-card__body h2 {
  margin: 0;
  color: var(--kd-ink);
  font-size: 18px;
  line-height: 1.27;
  letter-spacing: -.03em;
  font-weight: 820;
}
.kd-latest-card__body > span,
.kd-post-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--kd-orange-strong);
  font-size: 12px;
  font-weight: 820;
}
.kd-post-card__body { padding: 18px 19px 20px; }
.kd-post-card__body p { margin: 8px 0 0; color: var(--kd-muted); font-size: 13px; line-height: 1.6; }

/* Steps */
.kd-section--steps { padding-top: 30px; background: var(--kd-paper); }
.kd-steps-shell {
  padding: 42px;
  border-radius: var(--kd-radius-xl);
  background: var(--kd-ink);
  color: #fff;
  box-shadow: 0 20px 60px rgba(32, 32, 42, .12);
}
.kd-steps-shell .kd-section-kicker { color: #ffb49d; }
.kd-steps-shell h2 { color: #fff; }
.kd-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.kd-step {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.kd-step > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--kd-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.kd-step strong { display: block; margin-top: 1px; font-size: 15px; }
.kd-step p { margin: 7px 0 0; color: rgba(255,255,255,.68); font-size: 12.5px; line-height: 1.55; }

/* Editorial / benefits */
.kd-section--editorial { background: #fff; }
.kd-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 72px;
  align-items: center;
}
.kd-editorial-copy h2 { max-width: 720px; }
.kd-editorial-copy p { max-width: 720px; margin: 20px 0 0; color: var(--kd-muted); font-size: 15.5px; line-height: 1.8; }
.kd-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kd-benefit {
  min-height: 165px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--kd-line);
  border-radius: 22px;
  background: var(--kd-paper);
}
.kd-benefit > span { margin-bottom: auto; font-size: 25px; }
.kd-benefit strong { margin-top: 24px; font-size: 15px; }
.kd-benefit small { margin-top: 5px; color: var(--kd-muted); font-size: 11.5px; line-height: 1.45; }

/* FAQ */
.kd-section--faq { background: #f7f4ef; }
.kd-faq-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 70px; align-items: start; }
.kd-faq-list { display: grid; gap: 9px; }
.kd-faq-list details {
  padding: 0 18px;
  border: 1px solid #e5e0d9;
  border-radius: 18px;
  background: #fff;
}
.kd-faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  color: var(--kd-ink);
  font-size: 14px;
  font-weight: 800;
}
.kd-faq-list summary::-webkit-details-marker { display: none; }
.kd-faq-list summary::after { content: "+"; color: var(--kd-orange); font-size: 22px; font-weight: 500; }
.kd-faq-list details[open] summary::after { content: "−"; }
.kd-faq-list details p { margin: -3px 0 17px; padding-right: 38px; color: var(--kd-muted); font-size: 13px; line-height: 1.7; }

/* Category archives */
.kd-archive-hero {
  padding: 42px 0 24px;
  background: linear-gradient(180deg, #fffdf9, #fff9f2);
}
.kd-archive-hero__panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  padding: 34px 38px;
  border: 1px solid rgba(32,32,42,.07);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(32,32,42,.055);
}
.kd-archive-hero__panel::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: var(--kd-orange-soft);
}
.kd-archive-hero__icon {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 25px;
  background: var(--kd-orange-soft);
  font-size: 35px;
  font-weight: 900;
  letter-spacing: -.07em;
}
.kd-archive-hero__copy { position: relative; z-index: 1; max-width: 820px; }
.kd-archive-hero h1 {
  margin: 0;
  color: var(--kd-ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.03;
  letter-spacing: -.05em;
  font-weight: 880;
}
.kd-archive-intro { max-width: 760px; margin-top: 13px; }
.kd-archive-intro p { margin: 0; color: var(--kd-muted); font-size: 14.5px; line-height: 1.7; }
.kd-archive-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; color: var(--kd-soft); font-size: 11.5px; font-weight: 720; }
.kd-category-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 16px 2px 2px;
  scrollbar-width: none;
}
.kd-category-chips::-webkit-scrollbar { display: none; }
.kd-category-chips a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #e7e2dc;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #62626e;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 760;
}
.kd-category-chips a:hover,
.kd-category-chips a.is-current { border-color: #ffd2c3; background: var(--kd-orange-soft); color: var(--kd-orange-strong); }
.kd-archive-content { padding-top: 42px; }
.kd-pagination { margin-top: 38px; }
.kd-archive-seo {
  max-width: 900px;
  margin: 68px auto 0;
  padding: 34px 38px;
  border: 1px solid var(--kd-line);
  border-radius: 26px;
  background: #fff;
}
.kd-archive-seo h2 { margin: 0 0 13px; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.kd-archive-seo p { color: var(--kd-muted); font-size: 14.5px; line-height: 1.8; }

/* Single article */
.kd-single { padding: 36px 0 80px; }
.kd-single .entry-content--narrow { max-width: 980px; padding-top: 0; }
.kd-article {
  padding: 42px 46px 50px;
  border: 1px solid var(--kd-line);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(32,32,42,.045);
}
.kd-article-header { margin-bottom: 26px; }
.kd-article-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--kd-soft);
  font-size: 11.5px;
  font-weight: 760;
}
.kd-article-kicker a { color: var(--kd-orange-strong); text-decoration: none; }
.kd-article .entry-title {
  max-width: 850px;
  margin: 0;
  color: var(--kd-ink);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: -.052em;
  font-weight: 880;
}
.kd-article-meta { margin-top: 15px; color: var(--kd-soft); font-size: 11.5px; }
.kd-featured-image {
  overflow: hidden;
  margin: 0 0 34px;
  border-radius: 24px;
  background: #f6f4f0;
}
.kd-article-body > p:first-child {
  color: #4e4e5a;
  font-size: 18px;
  line-height: 1.75;
}
.kd-article-body h2 {
  margin-top: 40px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.kd-article-body h3 { font-size: 21px; letter-spacing: -.025em; }
.kd-article-body p,
.kd-article-body li { color: #5f5f6c; font-size: 15.5px; line-height: 1.85; }
.kd-article-body .wp-block-gallery,
.kd-article-body .gallery,
.kd-article-body .blocks-gallery-grid {
  gap: 14px !important;
}
.kd-article-body .wp-block-image,
.kd-article-body .gallery-item,
.kd-article-body .blocks-gallery-item {
  overflow: hidden;
  border: 1px solid #ece8e2;
  border-radius: 20px;
  background: #faf9f7;
}
.kd-post-navigation { margin-top: 18px; }

/* Footer */
.site-footer {
  background: #20202a;
  color: rgba(255,255,255,.68);
  border-top: 0;
}
.footer-inner { max-width: 1220px; padding-inline: 28px; }
.footer-grid { gap: 54px; }
.footer-heading,
.footer-col h4 { color: #fff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col ul li a { color: rgba(255,255,255,.62); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.09); }
.footer-logo { color: #fff; }

/* Make legacy generated related cards match the new visual language. */
.related-posts,
.related-articles { margin-top: 30px; }
.related-posts .post-card,
.related-articles .post-card {
  border-radius: 20px;
  border-color: var(--kd-line);
  box-shadow: none;
}
.related-posts .post-card__thumb,
.related-articles .post-card__thumb { border-radius: 17px 17px 0 0; }

/* Better focus visibility */
.kd-home a:focus-visible,
.kd-archive a:focus-visible,
.kd-single a:focus-visible,
.kd-hero-search input:focus-visible,
.kd-hero-search button:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid rgba(66,133,244,.4);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .kd-home-hero__grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 40px; }
  .kd-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-editorial-grid { grid-template-columns: 1fr 380px; gap: 42px; }
}

@media (max-width: 860px) {
  .container { padding-inline: 20px; }
  .header-inner { padding-inline: 20px; height: 68px; }
  .breadcrumb-inner { padding-inline: 20px; }
  .kd-section { padding: 64px 0; }
  .kd-home-hero { padding-top: 50px; }
  .kd-home-hero__grid { grid-template-columns: 1fr; gap: 38px; }
  .kd-home-hero h1 { max-width: 760px; }
  .kd-hero-bento { max-width: 650px; transform: none; }
  .kd-section-head--split { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .kd-latest-grid,
  .kd-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kd-editorial-grid { grid-template-columns: 1fr; }
  .kd-benefit-grid { max-width: 660px; }
  .kd-faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .kd-steps-grid { grid-template-columns: 1fr; }
  .kd-step { grid-template-columns: auto 1fr; }
  .kd-archive-hero__panel { padding: 28px; }
}

@media (max-width: 768px) {
  .site-nav {
    top: 68px;
    border-top: 1px solid var(--kd-line);
    background: #fffdf9;
  }
  .site-nav ul { gap: 3px; }
  .site-nav a { padding: 11px 12px; }
  .nav-toggle { border-radius: 12px; }
  .kd-single { padding-top: 18px; }
  .kd-single .entry-content--narrow { padding-inline: 16px; }
  .kd-article { padding: 30px 22px 34px; border-radius: 24px; }
  .kd-article .entry-title { font-size: clamp(32px, 9vw, 46px); }
  .kd-archive-hero { padding-top: 24px; }
}

@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .header-inner { padding-inline: 16px; }
  .breadcrumb-inner { padding-inline: 16px; }
  .kd-home-hero { padding: 38px 0 38px; }
  .kd-home-hero h1 { font-size: clamp(39px, 12vw, 52px); }
  .kd-home-hero h1 span { white-space: normal; }
  .kd-home-hero__copy > p { margin-top: 18px; font-size: 16px; }
  .kd-hero-search { grid-template-columns: auto minmax(0, 1fr); padding: 8px 12px; }
  .kd-hero-search button { grid-column: 1 / -1; width: 100%; }
  .kd-home-hero__actions { display: grid; grid-template-columns: 1fr; }
  .kd-button { width: 100%; }
  .kd-trust-row { gap: 10px 13px; }
  .kd-hero-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 9px; }
  .kd-bento-card,
  .kd-bento-stat { border-radius: 20px; }
  .kd-bento-card--large { grid-column: span 2; grid-row: auto; min-height: 180px; }
  .kd-bento-card:not(.kd-bento-card--large) { min-height: 135px; }
  .kd-bento-stat { min-height: 95px; }
  .kd-category-grid { grid-template-columns: 1fr; }
  .kd-category-card { min-height: 128px; gap: 18px; }
  .kd-latest-grid,
  .kd-post-grid { grid-template-columns: 1fr; gap: 14px; }
  .kd-latest-card,
  .kd-post-card { border-radius: 20px; }
  .kd-latest-card__media { padding: 12px; }
  .kd-post-card__media { padding: 12px; }
  .kd-section { padding: 54px 0; }
  .kd-section-head { margin-bottom: 25px; }
  .kd-section-head h2,
  .kd-editorial-copy h2,
  .kd-faq-grid h2 { font-size: 34px; }
  .kd-steps-shell { padding: 28px 18px; border-radius: 26px; }
  .kd-benefit-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kd-benefit { min-height: 145px; padding: 15px; border-radius: 18px; }
  .kd-archive-hero__panel { grid-template-columns: 1fr; gap: 17px; padding: 23px 20px; border-radius: 24px; }
  .kd-archive-hero__icon { width: 66px; height: 66px; border-radius: 20px; font-size: 27px; }
  .kd-archive-hero h1 { font-size: 37px; }
  .kd-archive-seo { margin-top: 48px; padding: 26px 21px; border-radius: 22px; }
  .kd-faq-list details { padding-inline: 15px; }
  .kd-faq-list details p { padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .kd-bento-card,
  .kd-category-card,
  .kd-latest-card,
  .kd-post-card,
  .kd-latest-card img,
  .kd-post-card img,
  .kd-button { transition: none !important; transform: none !important; }
}
