/* ==========================================================================
   Window Gurus — Blog & Single Post redesign (v1.0)
   Scoped under .wg-blog and .wg-single to avoid conflicts with theme CSS.
   ========================================================================== */

.wg-blog, .wg-single {
  --wg-blue:        #0432a1;
  --wg-blue-dark:   #0A2F64;
  --wg-blue-deep:   #003366;
  --wg-blue-soft:   #f0f4ff;
  --wg-yellow:      #ffd303;
  --wg-yellow-deep: #f9b233;
  --wg-green:       #b3d135;
  --wg-ink-900:     #221D1F;
  --wg-ink-700:     #2b2b2e;
  --wg-ink-500:     #4b5563;
  --wg-ink-400:     #6b7280;
  --wg-line:        #e5e7eb;
  --wg-line-strong: #d1d5db;
  --wg-bg:          #ffffff;
  --wg-bg-soft:     #f9f9f9;
  --wg-bg-tint:     #f0f4ff;
  --wg-shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --wg-shadow-md: 0 4px 12px rgba(16,24,40,.08), 0 2px 4px rgba(16,24,40,.04);
  --wg-shadow-lg: 0 18px 40px rgba(16,24,40,.10);
  --wg-radius:    14px;
  --wg-radius-sm: 10px;
  --wg-radius-pill: 999px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.wg-blog *, .wg-blog *::before, .wg-blog *::after,
.wg-single *, .wg-single *::before, .wg-single *::after {
  box-sizing: border-box;
}

/* Container helper (we don't override the theme's .container) */
.wg-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons inside our blocks (don't touch existing .btn from theme) */
.wg-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--wg-radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 0; transition: all .15s; text-decoration: none;
  font-family: inherit; line-height: 1;
}
.wg-btn--primary { background: var(--wg-yellow); color: var(--wg-ink-900); }
.wg-btn--primary:hover { background: var(--wg-yellow-deep); transform: translateY(-1px); color: var(--wg-ink-900); text-decoration: none; }
.wg-btn--blue { background: var(--wg-blue); color: #fff; }
.wg-btn--blue:hover { background: var(--wg-blue-dark); color: #fff; text-decoration: none; }
.wg-btn--ghost { background: transparent; color: var(--wg-blue); border: 2px solid var(--wg-blue); }
.wg-btn--ghost:hover { background: var(--wg-blue); color: #fff; text-decoration: none; }

/* ==========================================================================
   BLOG LISTING
   ========================================================================== */

/* HERO */
.wg-blog__hero {
  background: linear-gradient(135deg, var(--wg-blue-dark) 0%, var(--wg-blue) 60%, var(--wg-blue-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
}
.wg-blog__hero::after {
  content: ''; position: absolute; right: -100px; top: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,211,3,.18), transparent 70%);
  pointer-events: none;
}
.wg-blog__hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 6px 14px; border-radius: var(--wg-radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.wg-blog__hero-eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--wg-yellow);
}
.wg-blog__hero h1 {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 880px;
  letter-spacing: -.02em;
  color: #fff;
}
.wg-blog__hero h1 em {
  font-style: normal;
  color: var(--wg-yellow);
  background: linear-gradient(180deg, transparent 60%, rgba(255,211,3,.22) 60%);
  padding: 0 6px;
  border-radius: 4px;
}
.wg-blog__hero-lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255,255,255,.86);
  max-width: 720px;
  margin: 0 0 28px;
  line-height: 1.55;
}
.wg-blog__hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px;
}
.wg-blog__hero-trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.94);
  padding: 8px 14px; border-radius: var(--wg-radius-pill);
  font-size: 13px; font-weight: 600;
}
.wg-blog__hero-trust-item svg { width: 16px; height: 16px; }

/* TOPIC + SEARCH BAR */
.wg-blog__topic-bar {
  background: transparent;
  position: relative;
  margin-top: -28px;
  z-index: 5;
  padding-bottom: 32px;
}
.wg-blog__topic-inner {
  background: #fff;
  border-radius: var(--wg-radius);
  box-shadow: var(--wg-shadow-md);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.wg-blog__search {
  display: flex; align-items: center; gap: 10px;
  background: var(--wg-bg-soft);
  border: 1px solid var(--wg-line);
  border-radius: var(--wg-radius-sm);
  padding: 4px 6px 4px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.wg-blog__search:focus-within {
  border-color: var(--wg-blue);
  box-shadow: 0 0 0 3px rgba(4,50,161,.12);
  background: #fff;
}
.wg-blog__search svg { width: 18px; height: 18px; color: var(--wg-ink-400); flex: none; }
.wg-blog__search input {
  border: 0; background: transparent; outline: 0; flex: 1; font: inherit;
  padding: 12px 4px; color: var(--wg-ink-900);
}
.wg-blog__search button {
  background: var(--wg-blue); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer;
  transition: background .15s; font-family: inherit;
}
.wg-blog__search button:hover { background: var(--wg-blue-dark); }

.wg-blog__chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.wg-blog__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--wg-line);
  background: #fff;
  color: var(--wg-ink-700);
  border-radius: var(--wg-radius-pill);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.wg-blog__chip:hover { border-color: var(--wg-blue); color: var(--wg-blue); text-decoration: none; }
.wg-blog__chip.is-active { background: var(--wg-blue); color: #fff; border-color: var(--wg-blue); }
.wg-blog__chip-count {
  font-size: 11px; font-weight: 700; padding: 2px 6px;
  background: rgba(0,0,0,.06); border-radius: var(--wg-radius-pill);
  color: var(--wg-ink-500);
}
.wg-blog__chip.is-active .wg-blog__chip-count { background: rgba(255,255,255,.2); color: #fff; }

/* SECTION HEADER */
.wg-blog__section { padding: 32px 0; }
.wg-blog__section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.wg-blog__section-head h2 {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 800;
  margin: 0; color: var(--wg-ink-900); letter-spacing: -.01em;
}
.wg-blog__section-head .wg-link-more {
  color: var(--wg-blue); font-weight: 600; font-size: 14px;
}

/* FEATURED ARTICLE */
.wg-blog__featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px;
  align-items: stretch;
  background: linear-gradient(180deg, var(--wg-bg-tint) 0%, #fff 100%);
  border: 1px solid var(--wg-line);
  border-radius: var(--wg-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.wg-blog__featured:hover {
  border-color: var(--wg-blue);
  box-shadow: var(--wg-shadow-md);
  text-decoration: none;
  color: inherit;
}
.wg-blog__featured-media {
  position: relative; min-height: 320px; background: var(--wg-bg-soft);
  overflow: hidden;
}
.wg-blog__featured-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.wg-blog__featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--wg-yellow); color: var(--wg-ink-900);
  padding: 6px 12px; border-radius: var(--wg-radius-pill);
  font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.wg-blog__featured-body {
  padding: 32px 36px; display: flex; flex-direction: column; justify-content: center;
}
.wg-blog__featured-cat {
  color: var(--wg-blue); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
}
.wg-blog__featured-title {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800;
  color: var(--wg-ink-900); margin: 0 0 14px; line-height: 1.2; letter-spacing: -.01em;
}
.wg-blog__featured:hover .wg-blog__featured-title { color: var(--wg-blue); }
.wg-blog__featured-excerpt {
  color: var(--wg-ink-500); margin: 0 0 22px; font-size: 16px; line-height: 1.5;
}
.wg-blog__featured-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--wg-ink-400); font-size: 13.5px; margin-bottom: 22px;
}
.wg-blog__featured-cta {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--wg-blue); font-weight: 700; font-size: 15px;
}
.wg-blog__featured:hover .wg-blog__featured-cta { color: var(--wg-blue-dark); }

/* ARTICLE GRID */
.wg-blog__grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.wg-blog__card {
  background: #fff;
  border: 1px solid var(--wg-line);
  border-radius: var(--wg-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none; color: inherit;
}
.wg-blog__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wg-shadow-lg);
  border-color: var(--wg-blue);
  text-decoration: none; color: inherit;
}
.wg-blog__card-media {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--wg-bg-soft);
  position: relative;
}
.wg-blog__card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; display: block;
}
.wg-blog__card:hover .wg-blog__card-media img { transform: scale(1.05); }
.wg-blog__card-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--wg-blue);
  backdrop-filter: blur(4px);
  padding: 5px 10px; border-radius: var(--wg-radius-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
}
.wg-blog__card-body {
  padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1;
}
.wg-blog__card-title {
  font-weight: 800; font-size: 17px; line-height: 1.3;
  margin: 0 0 8px; color: var(--wg-ink-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.wg-blog__card:hover .wg-blog__card-title { color: var(--wg-blue); }
.wg-blog__card-excerpt {
  color: var(--wg-ink-500); font-size: 14px; margin: 0 0 14px; flex: 1; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wg-blog__card-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--wg-ink-400); font-size: 12.5px;
  border-top: 1px solid var(--wg-line); padding-top: 12px; margin-top: auto;
}
.wg-blog__card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.wg-blog__card-meta .wg-dot { width: 3px; height: 3px; background: var(--wg-ink-400); border-radius: 50%; }

/* No-image card fallback */
.wg-blog__card-media--noimg {
  background: linear-gradient(135deg, var(--wg-blue) 0%, var(--wg-blue-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
}
.wg-blog__card-media--noimg svg { width: 64px; height: 64px; }

/* INLINE STRIP CTA */
.wg-blog__strip {
  margin: 40px 0;
  background: linear-gradient(135deg, var(--wg-blue-dark) 0%, var(--wg-blue) 100%);
  color: #fff;
  border-radius: var(--wg-radius);
  padding: 32px 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  position: relative; overflow: hidden;
}
.wg-blog__strip::after {
  content: ''; position: absolute; right: -60px; top: -40px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,211,3,.18), transparent 70%);
  pointer-events: none;
}
.wg-blog__strip h3 { margin: 0 0 6px; font-size: clamp(20px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.wg-blog__strip p  { margin: 0; color: rgba(255,255,255,.85); font-size: 15px; max-width: 540px; line-height: 1.5; }
.wg-blog__strip-cta {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  position: relative; z-index: 1;
}
.wg-blog__strip-phone {
  color: #fff; font-weight: 800; font-size: 18px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.wg-blog__strip-phone:hover { text-decoration: underline; color: var(--wg-yellow); }

/* POPULAR + NEWSLETTER ROW */
.wg-blog__popular {
  background: var(--wg-bg-soft);
  padding: 48px 0;
  margin-top: 40px;
}
.wg-blog__popular-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.wg-blog__popular h3 { font-size: 20px; font-weight: 800; margin: 0 0 16px; color: var(--wg-ink-900); }
.wg-blog__popular ol { margin: 0; padding: 0; counter-reset: pop; list-style: none; }
.wg-blog__popular ol li {
  counter-increment: pop;
  display: grid; grid-template-columns: 36px 1fr; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--wg-line);
}
.wg-blog__popular ol li:last-child { border-bottom: 0; }
.wg-blog__popular ol li::before {
  content: counter(pop, decimal-leading-zero);
  color: var(--wg-blue); font-weight: 800; font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.wg-blog__popular ol li a { color: var(--wg-ink-900); font-weight: 600; line-height: 1.35; text-decoration: none; }
.wg-blog__popular ol li a:hover { color: var(--wg-blue); text-decoration: underline; }
.wg-blog__popular ol li small { display: block; color: var(--wg-ink-400); font-weight: 400; font-size: 12.5px; margin-top: 4px; }

.wg-blog__newsletter {
  background: var(--wg-bg-tint);
  border: 1px solid var(--wg-line);
  border-radius: var(--wg-radius);
  padding: 28px 30px;
}
.wg-blog__newsletter h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; color: var(--wg-ink-900); }
.wg-blog__newsletter p  { margin: 0 0 16px; color: var(--wg-ink-500); font-size: 14px; line-height: 1.5; }
.wg-blog__newsletter form { display: flex; gap: 8px; }
.wg-blog__newsletter input {
  flex: 1; border: 1px solid var(--wg-line); background: #fff;
  padding: 12px 14px; border-radius: 8px; font: inherit; outline: 0;
  color: var(--wg-ink-900);
}
.wg-blog__newsletter input:focus { border-color: var(--wg-blue); box-shadow: 0 0 0 3px rgba(4,50,161,.12); }
.wg-blog__newsletter button {
  background: var(--wg-blue); color: #fff; border: 0;
  padding: 12px 18px; border-radius: 8px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.wg-blog__newsletter button:hover { background: var(--wg-blue-dark); }
.wg-blog__newsletter small { display: block; margin-top: 10px; color: var(--wg-ink-400); font-size: 12px; }

/* PAGINATION ROW (we keep theme's pagination styling, just wrapper) */
.wg-blog__pager-row {
  display: flex; flex-direction: column; gap: 22px; align-items: center;
  margin-top: 40px;
}

/* Responsive blog */
@media (max-width: 960px) {
  .wg-blog__grid { grid-template-columns: repeat(2, 1fr); }
  .wg-blog__featured { grid-template-columns: 1fr; }
  .wg-blog__featured-media { min-height: 240px; aspect-ratio: 16/9; }
}
@media (max-width: 720px) {
  .wg-blog__strip { grid-template-columns: 1fr; }
  .wg-blog__popular-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wg-blog__grid { grid-template-columns: 1fr; }
  .wg-blog__hero { padding: 44px 0 36px; }
  .wg-blog__featured-body { padding: 24px 22px; }
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

/* Hero */
.wg-single__hero {
  background: linear-gradient(180deg, var(--wg-blue-soft) 0%, #fff 100%);
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--wg-line);
  /* Defensive: theme has a global `header { position: sticky; top: 0 }`. */
  position: static;
  top: auto;
  z-index: auto;
}
.wg-single__breadcrumbs {
  color: var(--wg-ink-400); font-size: 13px; margin: 0 0 18px;
}
.wg-single__breadcrumbs a { color: var(--wg-ink-500); text-decoration: none; }
.wg-single__breadcrumbs a:hover { color: var(--wg-blue); text-decoration: underline; }
.wg-single__breadcrumbs .sep { margin: 0 6px; color: var(--wg-ink-400); }
/* Yoast breadcrumb fallback inside our hero */
.wg-single__hero #breadcrumbs,
.wg-single__hero .breadcrumbs,
.wg-single__hero nav.breadcrumbs {
  color: var(--wg-ink-400); font-size: 13px; margin: 0 0 18px; padding: 0;
}
.wg-single__hero #breadcrumbs a,
.wg-single__hero .breadcrumbs a,
.wg-single__hero nav.breadcrumbs a { color: var(--wg-ink-500); text-decoration: none; }
.wg-single__hero #breadcrumbs a:hover,
.wg-single__hero .breadcrumbs a:hover,
.wg-single__hero nav.breadcrumbs a:hover { color: var(--wg-blue); text-decoration: underline; }

.wg-single__cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wg-blue); color: #fff !important;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
}
.wg-single__cat-badge:hover { background: var(--wg-blue-dark); color: #fff !important; text-decoration: none; }

.wg-single__hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; line-height: 1.18;
  color: var(--wg-ink-900); letter-spacing: -.02em;
  margin: 14px 0 18px;
  max-width: 920px;
}
.wg-single__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  color: var(--wg-ink-500); font-size: 14px;
}
.wg-single__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.wg-single__meta-item svg { width: 16px; height: 16px; color: var(--wg-blue); }
.wg-single__updated-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(179,209,53,.18); color: #475c0d;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.wg-single__updated-pill::before { content: ''; width: 6px; height: 6px; background: #82a611; border-radius: 50%; }
.wg-single__author-mini {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--wg-ink-700); font-size: 14px;
  background: #fff; border: 1px solid var(--wg-line);
  padding: 4px 12px 4px 4px; border-radius: 999px;
}
.wg-single__author-mini-pic {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--wg-blue), var(--wg-blue-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
}
.wg-single__author-mini b { color: var(--wg-blue); font-weight: 700; }
.wg-single__author-mini a { color: var(--wg-blue); text-decoration: none; font-weight: 700; }
.wg-single__author-mini a:hover { text-decoration: underline; }

/* Emergency CTA */
.wg-single__emergency {
  margin: 22px 0 0;
  background: linear-gradient(135deg, var(--wg-ink-900) 0%, #2b2b2e 100%);
  color: #fff; padding: 18px 22px;
  border-radius: 12px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  border-left: 4px solid var(--wg-yellow);
}
.wg-single__emergency-icon {
  background: var(--wg-yellow); color: var(--wg-ink-900);
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.wg-single__emergency strong { display: block; font-size: 15px; margin-bottom: 2px; color: #fff; }
.wg-single__emergency span.sub { color: rgba(255,255,255,.7); font-size: 13.5px; }
.wg-single__emergency a {
  color: var(--wg-yellow); font-weight: 800; font-size: 18px;
  text-decoration: none; white-space: nowrap;
}
.wg-single__emergency a:hover { color: #fff; text-decoration: none; }

/* Featured image below header */
.wg-single__featured-img {
  margin: 0 auto;
  max-width: 1200px; padding: 24px;
}
.wg-single__featured-img img {
  width: 100%; aspect-ratio: 16/8; object-fit: cover;
  border-radius: 18px; box-shadow: var(--wg-shadow-lg); display: block;
}

/* Two-column body */
.wg-single__body {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 40px; align-items: start;
  padding: 24px 0 64px;
}
.wg-single__sidebar {
  position: sticky;
  top: 24px;
  /* Scroll inside the sidebar when TOC is taller than viewport. */
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  /* Subtle scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: var(--wg-line-strong) transparent;
}
.wg-single__sidebar::-webkit-scrollbar { width: 6px; }
.wg-single__sidebar::-webkit-scrollbar-thumb { background: var(--wg-line-strong); border-radius: 3px; }
.wg-single__sidebar::-webkit-scrollbar-track { background: transparent; }

.wg-single__toc {
  background: var(--wg-bg-soft);
  border: 1px solid var(--wg-line);
  border-radius: 12px;
  padding: 20px 22px;
}
.wg-single__toc-title {
  font-size: 12px; font-weight: 800; color: var(--wg-ink-400);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.wg-single__toc-title::before { content: ''; width: 18px; height: 2px; background: var(--wg-blue); }
.wg-single__toc ol {
  list-style: none; padding: 0; margin: 0; counter-reset: toc;
}
.wg-single__toc ol li {
  counter-increment: toc;
  padding: 7px 0;
  border-left: 2px solid transparent;
}
.wg-single__toc ol li.is-active { border-left-color: var(--wg-blue); padding-left: 10px; margin-left: -12px; }
.wg-single__toc ol li.is-active > a { color: var(--wg-blue); font-weight: 700; }
.wg-single__toc ol li > a {
  color: var(--wg-ink-700); font-size: 14px; line-height: 1.4;
  text-decoration: none; display: flex; gap: 8px;
}
.wg-single__toc ol li > a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--wg-ink-400); font-weight: 700; font-variant-numeric: tabular-nums;
  flex: none;
}
.wg-single__toc ol li > a:hover { color: var(--wg-blue); }
.wg-single__toc ol li ol { padding-left: 22px; counter-reset: toc-sub; }
.wg-single__toc ol li ol li { counter-increment: toc-sub; }
.wg-single__toc ol li ol li > a { font-size: 13px; color: var(--wg-ink-500); }
.wg-single__toc ol li ol li > a::before { content: counter(toc-sub, decimal); color: var(--wg-ink-400); }

.wg-single__sidebar-cta {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--wg-blue) 0%, var(--wg-blue-dark) 100%);
  color: #fff; border-radius: 12px;
  padding: 22px;
  position: relative; overflow: hidden;
}
.wg-single__sidebar-cta::before {
  content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255,211,3,.22), transparent 70%);
  pointer-events: none;
}
.wg-single__sidebar-cta h4 {
  margin: 0 0 8px; font-size: 16px; font-weight: 800; line-height: 1.3;
  position: relative; color: #fff;
}
.wg-single__sidebar-cta p {
  margin: 0 0 14px; font-size: 13.5px; color: rgba(255,255,255,.85);
  position: relative; line-height: 1.5;
}
.wg-single__sidebar-cta .wg-btn { width: 100%; justify-content: center; position: relative; }
.wg-single__sidebar-cta-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 700; position: relative;
}
.wg-single__sidebar-cta-phone:hover { color: var(--wg-yellow); text-decoration: none; }
.wg-single__sidebar-trust {
  margin-top: 14px;
  display: flex; gap: 10px; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.7);
  position: relative;
}
.wg-single__sidebar-trust::before {
  content: '★★★★★'; color: var(--wg-yellow);
  letter-spacing: 2px; font-size: 13px;
}

/* Article column — typography */
.wg-single__article {
  max-width: 760px;
  font-size: 17px;
  color: var(--wg-ink-700);
  line-height: 1.7;
}
/* ============================================================
   ARTICLE SECTIONS / BLOCKS (when post uses ACF wg_sections)
   ============================================================ */
.wg-block {
  position: relative;
  padding: 28px 32px;
  margin: 0 0 24px;
  border-radius: 14px;
  border: 1px solid var(--wg-line);
  background: #fff;
  scroll-margin-top: 24px;
}
.wg-block:last-child { margin-bottom: 0; }
.wg-block__title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--wg-ink-900);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  scroll-margin-top: 24px;
}
.wg-block__content { font-size: 17px; line-height: 1.7; color: var(--wg-ink-700); }
.wg-block__content > *:first-child { margin-top: 0; }
.wg-block__content > *:last-child { margin-bottom: 0; }
.wg-block__content p { margin: 0 0 1em; }
.wg-block__content h3 {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 800;
  color: var(--wg-ink-900);
  line-height: 1.3;
  margin: 1.6em 0 .5em;
  scroll-margin-top: 24px;
}
.wg-block__content ul, .wg-block__content ol { padding-left: 1.4em; margin: 0 0 1em; }
.wg-block__content li { margin: 0 0 .4em; }
.wg-block__content a { font-weight: 600; color: var(--wg-blue); }
.wg-block__content a:hover { color: var(--wg-blue-dark); text-decoration: underline; }
.wg-block__content img { border-radius: 10px; margin: 1em 0; }
.wg-block__content blockquote {
  margin: 1.4em 0; padding: 4px 0 4px 18px;
  border-left: 4px solid var(--wg-yellow);
  font-style: italic; color: var(--wg-ink-700);
}

/* Block type: default — clean card */
.wg-block--default {
  background: #fff;
  border-color: var(--wg-line);
}

/* Block type: tip — blue accent (Pro Tip / advice) */
.wg-block--tip {
  background: linear-gradient(180deg, var(--wg-blue-soft) 0%, #fff 60%);
  border-color: #c7d2ff;
  border-left: 4px solid var(--wg-blue);
}
.wg-block--tip .wg-block__title { color: var(--wg-blue-dark); }
.wg-block--tip .wg-block__title::before {
  content: '💡';
  margin-right: 10px;
}

/* Block type: warning — yellow accent (caution) */
.wg-block--warning {
  background: linear-gradient(180deg, #fff8e6 0%, #fff 60%);
  border-color: #fde68a;
  border-left: 4px solid var(--wg-yellow);
}
.wg-block--warning .wg-block__title { color: #6b4f00; }
.wg-block--warning .wg-block__title::before {
  content: '⚠️';
  margin-right: 10px;
}

/* Block type: cta — dark conversion block */
.wg-block--cta {
  background: linear-gradient(135deg, var(--wg-ink-900) 0%, #2b2b2e 100%);
  border-color: var(--wg-ink-900);
  color: #fff;
  padding: 32px 36px;
}
.wg-block--cta::before {
  content: ''; position: absolute; right: -60px; top: -50px; width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,211,3,.18), transparent 70%);
  pointer-events: none; border-radius: 50%;
}
.wg-block--cta .wg-block__title { color: #fff; position: relative; }
.wg-block--cta .wg-block__title::before {
  content: '📞';
  margin-right: 10px;
}
.wg-block--cta .wg-block__content {
  color: rgba(255,255,255,.86); position: relative;
}
.wg-block--cta .wg-block__content a {
  color: var(--wg-yellow); text-decoration: underline;
}
.wg-block--cta .wg-block__content a:hover { color: #fff; }
.wg-block--cta .wg-block__content strong { color: #fff; }
/* Make any buttons inside CTA block look right */
.wg-block--cta .wg-block__content .wg-btn,
.wg-block--cta .wg-block__content a.btn {
  text-decoration: none;
}

@media (max-width: 720px) {
  .wg-block { padding: 22px 20px; }
  .wg-block--cta { padding: 26px 22px; }
}

/* Neutralize theme's `.pretty` decoration (blue dot + 50vw blue bar)
   which leaks into article H2/H3 via Visual Composer. */
.wg-single__article .pretty,
.wg-single__article h2.pretty,
.wg-single__article h3.pretty,
.wg-single__article h4.pretty {
  margin-left: 0;
}
.wg-single__article .pretty::before,
.wg-single__article .pretty::after,
.wg-single__article h2.pretty::before,
.wg-single__article h2.pretty::after,
.wg-single__article h3.pretty::before,
.wg-single__article h3.pretty::after,
.wg-single__article h4.pretty::before,
.wg-single__article h4.pretty::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  width: 0 !important;
  height: 0 !important;
}
.wg-single__article > p:first-of-type::first-letter {
  font-size: 3.6em; line-height: .9; float: left;
  color: var(--wg-blue); font-weight: 800;
  padding-right: 10px; padding-top: 4px;
}
.wg-single__article p { margin: 0 0 1.2em; }
.wg-single__article h2 {
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--wg-ink-900);
  line-height: 1.25; letter-spacing: -.01em;
  margin: 0.2em 0 .6em; scroll-margin-top: 24px;
}
.wg-single__article h3 {
  font-size: clamp(18px, 2vw, 21px); font-weight: 800; color: var(--wg-ink-900);
  margin: 1.8em 0 .5em; line-height: 1.3; scroll-margin-top: 24px;
}
.wg-single__article ul, .wg-single__article ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.wg-single__article li { margin: 0 0 .4em; }
.wg-single__article a { font-weight: 600; color: var(--wg-blue); }
.wg-single__article a:hover { color: var(--wg-blue-dark); text-decoration: underline; }
.wg-single__article img { border-radius: 12px; margin: 1.5em 0; }
.wg-single__article blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--wg-yellow);
  font-style: italic; color: var(--wg-ink-700);
  font-size: 1.05em;
}

/* Share */
.wg-single__share {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid var(--wg-line); border-bottom: 1px solid var(--wg-line);
  margin: 2em 0;
}
.wg-single__share b { color: var(--wg-ink-700); font-size: 14px; margin-right: 6px; }
.wg-single__share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--wg-bg-soft); border: 1px solid var(--wg-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--wg-ink-700); transition: all .15s;
  text-decoration: none; font-size: 14px; font-weight: 700;
  cursor: pointer;
}
.wg-single__share-btn:hover { background: var(--wg-blue); color: #fff; border-color: var(--wg-blue); text-decoration: none; }

/* End-of-article CTA */
.wg-single__end-cta {
  margin: 48px 0 0;
  background: linear-gradient(135deg, var(--wg-blue-dark) 0%, var(--wg-blue) 100%);
  color: #fff;
  padding: 44px 40px;
  border-radius: 18px;
  position: relative; overflow: hidden;
}
.wg-single__end-cta::before {
  content: ''; position: absolute; right: -100px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,211,3,.18), transparent 70%);
  pointer-events: none;
}
.wg-single__end-cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.wg-single__end-cta h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 0 0 12px;
  color: #fff; letter-spacing: -.01em;
}
.wg-single__end-cta p { color: rgba(255,255,255,.86); margin: 0 0 22px; font-size: 16px; line-height: 1.5; }
.wg-single__end-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.wg-single__end-cta-form {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 20px; border-radius: 12px;
}
.wg-single__end-cta-form label { display: block; font-size: 12px; color: rgba(255,255,255,.7); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.wg-single__end-cta-form input {
  width: 100%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff;
  padding: 12px 14px; border-radius: 8px; outline: 0; font: inherit;
  margin-bottom: 12px;
}
.wg-single__end-cta-form input::placeholder { color: rgba(255,255,255,.5); }
.wg-single__end-cta-form button { width: 100%; }
.wg-single__end-cta-trust {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px;
  color: rgba(255,255,255,.7); font-size: 13px;
  align-items: center;
}

/* Read next */
.wg-single__read-next {
  margin: 48px 0 0;
  background: var(--wg-blue-soft);
  border: 1px solid var(--wg-line);
  border-radius: 14px;
  padding: 24px 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.wg-single__read-next:hover { border-color: var(--wg-blue); box-shadow: var(--wg-shadow-md); text-decoration: none; color: inherit; }
.wg-single__read-next-label {
  font-size: 11px; font-weight: 800; color: var(--wg-blue);
  letter-spacing: .08em; text-transform: uppercase;
}
.wg-single__read-next-title { font-size: 18px; font-weight: 800; color: var(--wg-ink-900); margin: 4px 0 0; line-height: 1.3; }
.wg-single__read-next-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--wg-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: none; font-size: 18px; font-weight: 800;
  transition: transform .15s;
}
.wg-single__read-next:hover .wg-single__read-next-arrow { transform: translateX(3px); background: var(--wg-blue-dark); }

/* Related (override theme's news-block subtly) */
.wg-single__related {
  background: var(--wg-bg-soft);
  padding: 56px 0;
  margin-top: 48px;
}
.wg-single__related h2 {
  margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800;
  color: var(--wg-ink-900); letter-spacing: -.01em;
}
.wg-single__related-lede { color: var(--wg-ink-500); margin: 0 0 24px; }
.wg-single__related-lede a { color: var(--wg-blue); font-weight: 600; }
.wg-single__related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.wg-single__rcard {
  background: #fff; border: 1px solid var(--wg-line); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: all .2s;
}
.wg-single__rcard:hover { transform: translateY(-3px); box-shadow: var(--wg-shadow-md); border-color: var(--wg-blue); text-decoration: none; color: inherit; }
.wg-single__rcard-media { aspect-ratio: 16/10; background: var(--wg-bg-soft); }
.wg-single__rcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg-single__rcard-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.wg-single__rcard-cat { font-size: 11.5px; font-weight: 800; color: var(--wg-blue); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.wg-single__rcard-title { font-size: 16px; font-weight: 800; color: var(--wg-ink-900); margin: 0 0 8px; line-height: 1.3; }
.wg-single__rcard:hover .wg-single__rcard-title { color: var(--wg-blue); }
.wg-single__rcard-meta { color: var(--wg-ink-400); font-size: 12.5px; margin-top: auto; }

/* Sticky mobile bar */
.wg-single__sticky-mobile {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #fff; border-top: 1px solid var(--wg-line);
  padding: 10px 14px;
  z-index: 50; box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  grid-template-columns: 1fr 1fr; gap: 10px;
}
.wg-single__sticky-mobile .wg-btn { width: 100%; justify-content: center; padding: 12px 14px; font-size: 14px; }
.wg-single__sticky-mobile .wg-btn--call { background: var(--wg-ink-900); color: #fff; }
.wg-single__sticky-mobile .wg-btn--call:hover { background: #000; color: #fff; }

/* Single responsive */
@media (max-width: 1000px) {
  .wg-single__body { grid-template-columns: 1fr; }
  .wg-single__sidebar { position: static; order: -1; }
  .wg-single__toc { padding: 16px 18px; }
}
@media (max-width: 800px) {
  .wg-single__end-cta-inner { grid-template-columns: 1fr; }
  .wg-single__related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wg-single__emergency { grid-template-columns: 1fr; text-align: center; }
  .wg-single__read-next { grid-template-columns: 1fr; }
  .wg-single__sticky-mobile { display: grid; }
  body.single.wg-has-sticky-mobile { padding-bottom: 70px; }
  .wg-single__end-cta { padding: 28px 22px; }
  .wg-single__featured-img { padding: 16px; }
  .wg-single__featured-img img { aspect-ratio: 16/10; border-radius: 12px; }
}
