/* ==========================================================================
   Blog hub — Executive redesign
   --------------------------------------------------------------------------
   Scoped by the `.blh-*` component prefixes emitted by
   `seoservices1theme_blog_hub_page()` in inc/blog-hub-page.php, so nothing here
   leaks onto other templates.

   Palette:
     Deep Navy  #0B2545 · Slate Blue #13315C · Amber Gold #F5B700
     White      #FFFFFF · Soft Cool Gray #F8FAFC

   Grid contract — the article library runs on a six-column track so the row
   remainder can never leave a lone narrow card:
     full thirds  -> span 2  (three per row)
     remainder 2  -> span 3  (balanced pair)
     remainder 1  -> span 6  (promoted wide feature)
   Every card stretches to the row height, and the trailing action link is
   pinned with `margin-top: auto` so CTAs line up across the row.
   ========================================================================== */

.blh-hero,
.blh-library,
.blh-optin,
.blh-services,
.blh-cta-section {
  --blh-navy: #0B2545;
  --blh-navy-deep: #071A33;
  --blh-slate: #13315C;
  --blh-gold: #F5B700;
  --blh-gold-bright: #FFC933;
  --blh-bg: #F8FAFC;
  --blh-white: #FFFFFF;
  --blh-ink: #334155;
  --blh-ink-strong: #0E1B2C;
  --blh-line: #E2E8F0;
  --blh-radius: 14px;
  --blh-radius-lg: 20px;
  --blh-shadow: 0 14px 40px rgba(11, 37, 69, 0.10);
  --blh-shadow-lg: 0 26px 64px rgba(11, 37, 69, 0.16);
}

.blh-page {
  width: 100%;
}

/* ── Shared primitives ─────────────────────────────────────────────────── */

.blh-library .section-header h2,
.blh-services .section-header h2,
.blh-optin .section-header h2 {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.35rem);
  line-height: 1.18;
}

.blh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 183, 0, 0.45);
  background: rgba(245, 183, 0, 0.12);
  color: var(--blh-gold);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* On light panels the gold label needs the deeper amber for contrast. */
.blh-eyebrow--dark {
  border-color: rgba(138, 99, 0, 0.28);
  background: #FFF4D1;
  color: #8A6300;
}

/* Gold CTAs keep dark navy label text for contrast on the amber fill. */
.blh-hero .btn--primary,
.blh-optin .btn--primary,
.blh-cta .btn--primary {
  background: var(--blh-gold);
  border: 1px solid var(--blh-gold);
  color: var(--blh-navy);
  font-weight: 700;
}

.blh-hero .btn--primary:hover,
.blh-hero .btn--primary:focus-visible,
.blh-optin .btn--primary:hover,
.blh-optin .btn--primary:focus-visible,
.blh-cta .btn--primary:hover,
.blh-cta .btn--primary:focus-visible {
  background: var(--blh-gold-bright);
  border-color: var(--blh-gold-bright);
  color: var(--blh-navy);
}

.blh-btn--outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
}

.blh-btn--outline:hover,
.blh-btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* ── Section 1 — Hero ──────────────────────────────────────────────────── */

.blh-hero {
  position: relative;
  overflow: hidden;
  background: var(--blh-navy-deep);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(3rem, 5.5vw, 5rem);
}

/* Saturated navy wash plus a soft gold bloom behind the panel. */
.blh-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(245, 183, 0, 0.16), transparent 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(19, 49, 92, 0.9), transparent 62%),
    linear-gradient(160deg, var(--blh-navy) 0%, var(--blh-navy-deep) 68%);
  pointer-events: none;
}

.blh-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.blh-crumbs {
  margin-bottom: 1.35rem;
}

.blh-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: rgba(226, 235, 246, 0.72);
}

.blh-crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(226, 235, 246, 0.4);
}

.blh-crumbs a {
  color: rgba(226, 235, 246, 0.88);
  text-decoration: none;
}

.blh-crumbs a:hover,
.blh-crumbs a:focus-visible {
  color: var(--blh-gold);
}

.blh-crumbs [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.blh-hero h1 {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.3rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 1rem 0 0;
}

.blh-hero__lead {
  color: rgba(238, 244, 251, 0.87);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.68;
  margin: 1.15rem 0 0;
  max-width: 58ch;
}

.blh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.blh-actions .btn {
  min-height: 46px;
}

.blh-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  color: rgba(238, 244, 251, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
}

.blh-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.blh-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(245, 183, 0, 0.18);
  color: var(--blh-gold);
}

.blh-trust__icon svg {
  width: 14px;
  height: 14px;
}

/* ── Hero featured-playbooks panel ─────────────────────────────────────── */

.blh-panel {
  margin: 0;
  padding: 1.35rem 1.45rem 1.4rem;
  background: var(--blh-white);
  border: 1px solid var(--blh-line);
  border-radius: var(--blh-radius-lg);
  box-shadow: var(--blh-shadow-lg);
  color: var(--blh-ink-strong);
}

.blh-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.blh-panel__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blh-navy);
}

.blh-panel__tag {
  padding: 0.2rem 0.55rem;
  background: #FFF4D1;
  border-radius: 999px;
  color: #8A6300;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blh-panel__list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blh-panel__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.75rem;
  background: var(--blh-bg);
  border: 1px solid var(--blh-line);
  border-radius: 11px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.blh-panel__row:hover,
.blh-panel__row:focus-visible {
  background: #fff;
  border-color: rgba(245, 183, 0, 0.55);
  transform: translateY(-1px);
}

.blh-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--blh-navy), var(--blh-slate));
  color: var(--blh-gold);
}

.blh-panel__icon svg {
  width: 17px;
  height: 17px;
}

.blh-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 auto;
}

.blh-panel__body strong {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blh-ink-strong);
}

.blh-panel__body em {
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.35;
  color: #5F6E81;
}

.blh-panel__pill {
  flex: 0 0 auto;
  padding: 0.15rem 0.45rem;
  background: rgba(11, 37, 69, 0.06);
  border-radius: 999px;
  color: var(--blh-slate);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.blh-panel__foot {
  margin: 1.05rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--blh-line);
  font-size: 0.75rem;
  line-height: 1.5;
  color: #5F6E81;
}

/* ── Section 2 — Article library ───────────────────────────────────────── */

.blh-library {
  background: var(--blh-white);
}

.blh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.blh-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: var(--blh-bg);
  border: 1px solid var(--blh-line);
  border-radius: 999px;
  color: var(--blh-ink);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.blh-filter:hover,
.blh-filter:focus-visible {
  border-color: rgba(11, 37, 69, 0.3);
  background: #fff;
  color: var(--blh-navy);
}

.blh-filter.is-active {
  background: var(--blh-navy);
  border-color: var(--blh-navy);
  color: #fff;
}

.blh-filter__count {
  padding: 0.1rem 0.4rem;
  background: rgba(11, 37, 69, 0.08);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--blh-slate);
}

.blh-filter.is-active .blh-filter__count {
  background: rgba(245, 183, 0, 0.22);
  color: var(--blh-gold-bright);
}

/* Six-column track: 3-up, balanced pair, or promoted feature. */
.blh-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.blh-card,
.blh-lead {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--blh-white);
  border: 1px solid var(--blh-line);
  border-radius: var(--blh-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Anchors the stretched title link that makes the whole card clickable. */
.blh-card {
  position: relative;
  grid-column: span 2;
}

.blh-card--pair {
  grid-column: span 3;
}

.blh-card--full,
.blh-lead {
  grid-column: span 6;
}

/*
 * Orphan guard, active at every width rather than inside a breakpoint.
 *
 * The server already assigns spans for the full list, but a filter subset
 * changes how many cards are on screen. blog-hub.js mirrors this same logic
 * with `.is-solo`; the rules below are the static, no-JavaScript fallback.
 */
.blh-grid > .blh-card.is-solo,
.blh-grid > .blh-card--full {
  grid-column: span 6;
}

.blh-card:hover,
.blh-card:focus-within,
.blh-lead:hover,
.blh-lead:focus-within {
  border-color: rgba(11, 37, 69, 0.22);
  box-shadow: var(--blh-shadow);
  transform: translateY(-2px);
}

/* ── Media ─────────────────────────────────────────────────────────────── */

.blh-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--blh-bg);
  aspect-ratio: 16 / 9;
}

.blh-media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blh-card:hover .blh-media__img,
.blh-lead:hover .blh-media__img {
  transform: scale(1.03);
}

/* Category badge rides the thumbnail so the body stays grid-aligned. */
.blh-card__tag {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  /* Sits above the stretched title link so the badge stays its own target. */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  background: rgba(11, 37, 69, 0.92);
  border-radius: 999px;
  color: var(--blh-gold);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(2px);
}

.blh-card__tag:hover,
.blh-card__tag:focus-visible {
  background: var(--blh-navy);
  color: var(--blh-gold-bright);
}

/* ── Card body ─────────────────────────────────────────────────────────── */

.blh-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.blh-card__meta,
.blh-lead__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #64748B;
  text-transform: uppercase;
}

.blh-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #94A3B8;
}

.blh-card__read,
.blh-lead__read {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.blh-card__read svg,
.blh-lead__read svg {
  width: 13px;
  height: 13px;
}

.blh-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--blh-navy);
}

/* Stretched link: the title anchor covers the card, so a click anywhere
 * outside the category badge opens the article. */
.blh-card__title a {
  color: inherit;
  text-decoration: none;
}

.blh-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.blh-card__title a:hover,
.blh-card__title a:focus-visible {
  color: var(--blh-slate);
}

.blh-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--blh-ink);
  /* Two to three lines, never more: keeps every card the same rhythm. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/*
 * Reserve the three-line height even when an excerpt runs short, so titles
 * sit on the same baseline across a row and the action links stay level.
 */
.blh-card__excerpt {
  min-height: calc(3 * 1.6 * 0.875rem);
}

.blh-card__more {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blh-navy);
  text-decoration: none;
}

.blh-card__more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.blh-card__more:hover,
.blh-card__more:focus-visible {
  color: var(--blh-slate);
}

.blh-card__more:hover svg,
.blh-card__more:focus-visible svg {
  transform: translateX(3px);
}

/* ── Lead / featured article ───────────────────────────────────────────── */

/*
 * The lead is a grid child, so the parent's row gap already separates it
 * from the card row below. An extra margin here would double that gap.
 */
.blh-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: stretch;
}

.blh-lead__media {
  height: 100%;
  aspect-ratio: auto;
  min-height: 260px;
}

.blh-lead__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(1.35rem, 2.4vw, 2.1rem);
  justify-content: center;
}

.blh-lead__flag {
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  background: #FFF4D1;
  border-radius: 999px;
  color: #8A6300;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blh-lead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--blh-navy);
}

.blh-lead__title a {
  color: inherit;
  text-decoration: none;
}

.blh-lead__title a:hover,
.blh-lead__title a:focus-visible {
  color: var(--blh-slate);
}

.blh-lead__excerpt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--blh-ink);
}

.blh-lead__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--blh-line);
}

/* In the lead body the badge sits inline rather than over the image. */
.blh-lead__foot .blh-card__tag {
  position: static;
  background: var(--blh-bg);
  border: 1px solid var(--blh-line);
  color: var(--blh-slate);
  backdrop-filter: none;
}

.blh-lead__foot .blh-card__tag:hover,
.blh-lead__foot .blh-card__tag:focus-visible {
  background: var(--blh-navy);
  border-color: var(--blh-navy);
  color: var(--blh-gold);
}

.blh-lead__more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blh-navy);
  text-decoration: none;
}

.blh-lead__more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.blh-lead__more:hover svg,
.blh-lead__more:focus-visible svg {
  transform: translateX(3px);
}

/* A promoted remainder reads as a feature, never as a stranded card. */
.blh-lead--tail .blh-lead__flag {
  background: rgba(11, 37, 69, 0.06);
  color: var(--blh-slate);
}

/* Screen-reader-only live region for filter results. */
.blh-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Empty states ──────────────────────────────────────────────────────── */

.blh-empty {
  grid-column: span 6;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--blh-bg);
  border: 1px dashed var(--blh-line);
  border-radius: var(--blh-radius);
  color: var(--blh-ink);
}

.blh-empty p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.blh-grid__empty {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--blh-bg);
  border: 1px dashed var(--blh-line);
  border-radius: var(--blh-radius);
  font-size: 0.9rem;
  color: var(--blh-ink);
}

.blh-grid__empty[hidden] {
  display: none;
}

/* Cards removed by the filter must not reserve grid space. */
.blh-card[hidden],
.blh-lead[hidden] {
  display: none !important;
}

/* ── Pagination ────────────────────────────────────────────────────────── */

.blh-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.blh-pagination__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blh-pagination__link,
.blh-pagination__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.75rem;
  background: var(--blh-white);
  border: 1px solid var(--blh-line);
  border-radius: 10px;
  color: var(--blh-navy);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.blh-pagination__link:hover,
.blh-pagination__link:focus-visible,
.blh-pagination__nav:hover,
.blh-pagination__nav:focus-visible {
  background: var(--blh-bg);
  border-color: rgba(11, 37, 69, 0.3);
}

.blh-pagination__link.is-current {
  background: var(--blh-navy);
  border-color: var(--blh-navy);
  color: #fff;
}

/* ── Section 3 — Opt-in strip ──────────────────────────────────────────── */

.blh-optin {
  background: var(--blh-bg);
}

.blh-optin__bar {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
  background: var(--blh-white);
  border: 1px solid var(--blh-line);
  border-radius: var(--blh-radius-lg);
  box-shadow: var(--blh-shadow);
}

.blh-optin__copy h2 {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: var(--blh-navy);
}

.blh-optin__copy p {
  margin: 0.7rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--blh-ink);
  max-width: 54ch;
}

.blh-optin__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748B;
}

.blh-optin__row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
}

.blh-optin__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: var(--blh-white);
  border: 1px solid var(--blh-line);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--blh-ink-strong);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.blh-optin__input::placeholder {
  color: #94A3B8;
}

.blh-optin__input:focus {
  outline: none;
  border-color: rgba(245, 183, 0, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.18);
}

.blh-optin__submit {
  flex: 0 0 auto;
  min-height: 48px;
}

.blh-optin__note {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748B;
}

/* Honeypot: removed from the visual flow but still submitted. */
.blh-optin__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
}

.blh-alert {
  margin-bottom: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 11px;
  font-size: 0.875rem;
  line-height: 1.55;
}

.blh-alert p {
  margin: 0;
}

.blh-alert--ok {
  background: #E7F6EF;
  border: 1px solid rgba(15, 122, 80, 0.3);
  color: #0B5C3C;
}

.blh-alert--error {
  background: #FDF0EF;
  border: 1px solid rgba(214, 58, 52, 0.28);
  color: #8E211D;
}

/* ── Section 4 — Core services quick links ─────────────────────────────── */

.blh-services {
  background: var(--blh-white);
}

.blh-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
}

.blh-service {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.4rem 1.25rem 1.3rem;
  background: var(--blh-white);
  border: 1px solid var(--blh-line);
  border-radius: var(--blh-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blh-service:hover,
.blh-service:focus-visible {
  border-color: rgba(11, 37, 69, 0.22);
  box-shadow: var(--blh-shadow);
  transform: translateY(-2px);
}

.blh-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--blh-navy), var(--blh-slate));
  color: var(--blh-gold);
  margin-bottom: 1rem;
}

.blh-service__icon svg {
  width: 20px;
  height: 20px;
}

.blh-service__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blh-navy);
}

.blh-service__text {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--blh-ink);
}

.blh-service__more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blh-navy);
}

.blh-service__more svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.blh-service:hover .blh-service__more svg,
.blh-service:focus-visible .blh-service__more svg {
  transform: translateX(3px);
}

/* ── Section 5 — Closing CTA ───────────────────────────────────────────── */

.blh-cta-section {
  background: var(--blh-white);
  padding-top: 0;
}

.blh-cta {
  padding: clamp(2.1rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(155deg, var(--blh-navy) 0%, var(--blh-navy-deep) 100%);
  border-radius: 24px;
  box-shadow: var(--blh-shadow-lg);
  color: #fff;
  text-align: center;
}

.blh-cta h2 {
  margin: 1rem auto 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
}

.blh-cta p {
  margin: 1rem auto 0;
  max-width: 62ch;
  font-size: clamp(0.9375rem, 0.92rem + 0.15vw, 1rem);
  line-height: 1.68;
  color: rgba(238, 244, 251, 0.85);
}

.blh-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.blh-cta__actions .btn {
  min-height: 48px;
}

/* ── Responsive ladder ─────────────────────────────────────────────────── */

@media (max-width: 1023px) {
  .blh-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blh-hero__aside {
    max-width: 540px;
  }

  .blh-optin__bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .blh-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * Stay three-up between 900px and 1023px and tighten the cards instead of
 * wrapping to a 2 + 1 row: a stranded narrow card breaks the symmetry the
 * library is built around.
 */
@media (max-width: 900px) {
  .blh-grid {
    gap: 0.85rem;
  }

  .blh-card__body {
    padding: 0.95rem 1rem 1.05rem;
  }

  .blh-card__title {
    font-size: 1rem;
  }

  .blh-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .blh-lead__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

/*
 * Two-up below 767px. A promoted feature spans 6; everything else spans 3.
 *
 * The orphan guard cannot rely on a bare `:last-child`, because a lead article
 * is itself a grid child: with a lead present, an odd number of cards puts the
 * stranded card at an even index. Two parity rules cover both shapes. The
 * `.is-solo` class applied by blog-hub.js is handled globally above, so the
 * guard still holds after the filter pills hide cards.
 */
@media (max-width: 767px) {
  .blh-card,
  .blh-card--pair {
    grid-column: span 3;
  }

  .blh-lead,
  .blh-card--full,
  .blh-empty {
    grid-column: span 6;
  }

  /* No lead on the page: an odd child count strands the last card. */
  .blh-grid > .blh-card:last-child:nth-child(odd) {
    grid-column: span 6;
  }

  /* Lead present: the lead consumes an index, so the orphan sits at an even one. */
  .blh-grid > .blh-lead ~ .blh-card:last-child:nth-child(even) {
    grid-column: span 6;
  }

  .blh-filters {
    gap: 0.45rem;
  }

  .blh-filter {
    font-size: 0.78rem;
    padding: 0.5rem 0.8rem;
  }

  .blh-optin__row {
    flex-direction: column;
  }

  .blh-optin__submit {
    width: 100%;
  }

  .blh-actions .btn,
  .blh-cta__actions .btn {
    width: 100%;
  }
}

/*
 * Between three-up and one-up a card can get narrow enough for the category
 * badge to outgrow its thumbnail. Keep it inside the frame and truncate the
 * label instead of letting it bleed past the image edge.
 */
@media (max-width: 900px) {
  .blh-card__tag {
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 599px) {
  .blh-services__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blh-grid > * {
    grid-column: 1 / -1;
  }

  .blh-card__excerpt {
    -webkit-line-clamp: 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blh-card,
  .blh-card:hover,
  .blh-lead,
  .blh-lead:hover,
  .blh-service,
  .blh-service:hover,
  .blh-panel__row,
  .blh-panel__row:hover,
  .blh-media__img,
  .blh-card:hover .blh-media__img,
  .blh-lead:hover .blh-media__img,
  .blh-card__more svg,
  .blh-service__more svg,
  .blh-lead__more svg {
    transition: none;
    transform: none;
  }
}
