/* ============================================================
   Blog Hub / Road Test Knowledge Portal — blog index only
   Scoped under .page-blog-hub
   ============================================================ */

.page-blog-hub main {
  padding-bottom: 48px;
}

.page-blog-hub .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-blog-hub .site-header .main-nav > ul > li {
  overflow: visible;
}

/* --- Layout: left sidebar + wide main (no right rail) --- */
.bh-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 18px 72px;
}

.bh-grid {
  display: grid;
  grid-template-columns: minmax(232px, 268px) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bh-grid {
    grid-template-columns: 1fr;
  }

  .bh-sidebar-left {
    position: static;
    order: 2;
  }

  .bh-main-col {
    order: 1;
  }
}

@media (max-width: 768px) {
  .bh-wrap {
    padding: 10px 14px 56px;
  }
}

/* ============================================================
   Desktop Blog Hub pass: embedded hero + simplified controls
   ============================================================ */
@media (min-width: 769px) {
  .page-blog-hub .bh-hero--mountain {
    width: calc(100% + 36px);
    min-height: 330px;
    margin: -16px -18px 24px;
    border: 0;
    border-radius: 0 0 24px 24px;
    box-shadow: none;
    background-position: 74% center;
    isolation: isolate;
  }

  .page-blog-hub .bh-hero--mountain::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    pointer-events: none;
  }

  .page-blog-hub .bh-hero--mountain .bh-cinematic-card__shade {
    background:
      radial-gradient(circle at 74% 44%, rgba(0, 212, 255, 0.1), transparent 30%),
      linear-gradient(90deg,
        rgba(4, 8, 16, 0.98) 0%,
        rgba(4, 8, 16, 0.9) 36%,
        rgba(4, 8, 16, 0.44) 70%,
        rgba(4, 8, 16, 0.12) 100%),
      linear-gradient(180deg, rgba(2, 4, 9, 0.16), rgba(2, 4, 9, 0.52));
  }

  .page-blog-hub .bh-hero__content {
    max-width: min(58%, 660px);
    padding: 40px 42px 42px;
  }

  .page-blog-hub .bh-hero__content h1 {
    max-width: 10em;
    font-size: clamp(2rem, 3.6vw, 3.25rem);
    line-height: 1.04;
  }

  .page-blog-hub .bh-hero-lede {
    max-width: 42em;
    color: rgba(255, 255, 255, 0.68);
  }

  .page-blog-hub .bh-tabbar {
    display: none;
  }
}

/* Left sidebar sticky */
.bh-sidebar-left {
  position: sticky;
  top: 104px;
}

@media (max-width: 1024px) {
  .bh-sidebar-left {
    top: auto;
  }
}

.bh-hub-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}

.bh-hub-intro {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.bh-search-side {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 22, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bh-search-side svg {
  flex-shrink: 0;
  opacity: 0.45;
}

.bh-search-side input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  outline: none;
}

.bh-search-side input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.bh-mini-nav {
  margin: 0 0 18px;
}

.bh-mini-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-mini-nav li + li {
  margin-top: 8px;
}

.bh-mini-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid transparent;
}

.bh-mini-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.bh-mini-nav a.is-current {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.07);
}

.bh-mini-nav a.is-current,
.bh-mini-nav a.is-current:hover {
  color: #fff;
}

.bh-topics-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin: 0 0 12px;
}

.bh-topic-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details.bh-topic-group {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 22, 0.65);
  overflow: hidden;
}

details.bh-topic-group[open] {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.08);
}

details.bh-topic-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  list-style: none;
}

details.bh-topic-group summary::-webkit-details-marker {
  display: none;
}

details.bh-topic-group summary .bh-sum-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

details.bh-topic-group summary .bh-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(0, 212, 255, 0.85);
  border-bottom: 2px solid rgba(0, 212, 255, 0.85);
  transform: rotate(225deg);
  margin-bottom: 2px;
  transition: transform 0.2s;
}

details.bh-topic-group:not([open]) summary .bh-chevron {
  transform: rotate(45deg);
}

details.bh-topic-group summary .bh-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

details.bh-topic-group ul {
  list-style: none;
  margin: 0;
  padding: 0 10px 12px 14px;
}

details.bh-topic-group ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
}

details.bh-topic-group ul li a:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

details.bh-topic-group ul li a.is-active {
  color: #fff;
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.25);
}

details.bh-topic-group ul li span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.32);
}

.bh-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 12, 22, 0.45);
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.bh-topic-row .bh-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
}

a.bh-topic-row {
  text-decoration: none;
}

a.bh-topic-row:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

a.bh-topic-row.is-active {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.32);
  background: rgba(0, 212, 255, 0.08);
}

.bh-sidebar-cta {
  margin-top: 22px;
  padding: 22px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(165deg, rgba(0, 212, 255, 0.09) 0%, rgba(8, 12, 22, 0.92) 55%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.bh-sidebar-cta h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.bh-sidebar-cta p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

.bh-btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #050a14;
  background: linear-gradient(135deg, #00d4ff 0%, #00a8d4 100%);
  box-shadow: 0 6px 22px rgba(0, 212, 255, 0.35);
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
}

.bh-btn-cyan:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #050a14;
}

/* --- Cinematic background cards (hero + featured) --- */
.bh-cinematic-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #070b12;
  background-image: var(--bh-cinematic-bg);
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
  min-height: 208px;
  margin-bottom: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.bh-hero--mountain {
  --bh-cinematic-bg: url("/assets/images/blog/hero-mountain-road.png");
}

.bh-featured--guide {
  --bh-cinematic-bg: url("/assets/images/blog/featured-icbc-office-style.png");
  min-height: 220px;
  margin-bottom: 22px;
}

.bh-cinematic-card__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 10, 20, 0.96) 0%,
    rgba(5, 10, 20, 0.82) 38%,
    rgba(5, 10, 20, 0.22) 68%,
    rgba(5, 10, 20, 0.02) 100%
  );
}

.bh-cinematic-card__shade--featured {
  background: linear-gradient(
    90deg,
    rgba(5, 10, 20, 0.96) 0%,
    rgba(5, 10, 20, 0.85) 42%,
    rgba(5, 10, 20, 0.28) 72%,
    rgba(5, 10, 20, 0.05) 100%
  );
}

.bh-hero__content {
  position: relative;
  z-index: 1;
  padding: 28px 32px 32px;
  max-width: min(54%, 600px);
}

.bh-featured__content {
  position: relative;
  z-index: 1;
  padding: 26px 30px 30px;
  max-width: min(56%, 620px);
}

@media (max-width: 720px) {
  .bh-cinematic-card {
    background-position: 65% 40%;
    min-height: 260px;
  }

  .bh-cinematic-card__shade,
  .bh-cinematic-card__shade--featured {
    background: linear-gradient(
      180deg,
      rgba(5, 10, 20, 0.2) 0%,
      rgba(5, 10, 20, 0.55) 38%,
      rgba(5, 10, 20, 0.94) 100%
    );
  }

  .bh-hero__content,
  .bh-featured__content {
    max-width: none;
    padding: 24px 20px 26px;
  }
}

.bh-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  color: var(--r-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.bh-hero__content h1 {
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}

.bh-hero-lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  max-width: 38em;
}

/* Tab + search bar — single container */
.bh-tabbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-bottom: 22px;
  padding: 6px 8px 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 16, 26, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 36px rgba(0, 0, 0, 0.28);
}

.bh-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.bh-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.bh-tab:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
}

.bh-tab.is-active {
  color: #fff;
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

.bh-tab svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.bh-tabbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 280px;
  min-width: 180px;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(6, 10, 18, 0.92);
}

@media (max-width: 640px) {
  .bh-tabbar-search {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

.bh-tabbar-search svg {
  opacity: 0.4;
  flex-shrink: 0;
}

.bh-tabbar-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  outline: none;
}

.bh-tabbar-search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Featured guide (uses .bh-cinematic-card + .bh-featured__content) */
.bh-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.bh-featured-meta span strong {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 650;
}

.bh-featured__content h2 {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
}

.bh-read-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #050a14;
  box-shadow: 0 6px 22px rgba(0, 212, 255, 0.35);
}

.bh-read-guide:hover {
  color: #050a14;
  filter: brightness(1.08);
}

/* Interactive preview (document preview — img ok; wider layout) */
.bh-interactive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  gap: 28px 36px;
  align-items: center;
  padding: 26px 28px;
  margin-bottom: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 14, 22, 0.55);
}

@media (max-width: 720px) {
  .bh-interactive {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

.bh-interactive h2 {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
}

.bh-interactive p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.bh-preview-visual {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.bh-preview-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bh-interactive--map .bh-preview-visual {
  aspect-ratio: 16 / 9;
}

.bh-interactive--map .bh-preview-visual img {
  object-position: center center;
}

.bh-preview-pulse {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.85);
  background: rgba(0, 212, 255, 0.18);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45);
  left: 58%;
  top: 42%;
  transform: translate(-50%, -50%);
  animation: bh-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes bh-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45);
    transform: translate(-50%, -50%) scale(1);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(0, 212, 255, 0);
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
    transform: translate(-50%, -50%) scale(1);
  }
}

.bh-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  color: var(--r-accent);
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  background: rgba(0, 212, 255, 0.06);
}

.bh-btn-outline:hover {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.75);
  background: rgba(0, 212, 255, 0.12);
}

.bh-btn-outline svg {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

/* Latest articles */
.bh-articles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bh-articles-head h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.bh-articles-head a {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--r-accent);
  white-space: nowrap;
}

.bh-articles-head a:hover {
  color: #fff;
}

.bh-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 980px) {
  .bh-cards {
    grid-template-columns: 1fr;
  }
}

/* Resource cards: top image + bottom content */
.bh-article-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  background-color: #070b12;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bh-article-card:hover {
  border-color: rgba(0, 212, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.bh-article-card__media {
  position: relative;
  height: 188px;
  background-color: #0a1222;
  overflow: hidden;
}

.bh-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.35s ease;
}

.bh-article-card:hover .bh-article-card__media img {
  transform: scale(1.03);
  transition: transform 0.35s ease;
}

.bh-article-card__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 10, 20, 0) 0%, rgba(5, 10, 20, 0.9) 100%);
}

.bh-article-card__top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 0;
}

.bh-article-card-badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(0, 212, 255, 0.32);
  border: 1px solid rgba(0, 212, 255, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.bh-article-card-date {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.bh-article-card__body {
  padding: 16px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.bh-article-card__body h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.bh-article-card__body h3 a {
  color: #fff;
}

.bh-article-card__body h3 a:hover {
  color: var(--r-accent);
}

.bh-article-card__body > p.excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.62);
}

.bh-article-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
}

.bh-article-card-foot button {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
}

.bh-article-card-foot button:hover {
  color: var(--r-accent);
}

.bh-resource-card.is-hidden {
  display: none;
}

.bh-empty-state {
  margin: 4px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 16px;
  background: rgba(2, 12, 22, 0.64);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.bh-empty-state[hidden] {
  display: none;
}

.bh-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.bh-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  color: var(--r-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bh-load-more-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   Mobile Blog Hub — masthead, visible global nav, Hub drawer
   Scoped to .page-blog-hub only (desktop unchanged above 768px)
   ============================================================ */

.bh-mobile-masthead {
  display: none;
}

.page-blog-hub .bh-desktop-logo-link {
  display: flex;
}

@media (max-width: 768px) {
  .page-blog-hub .site-header ~ main {
    padding-top: 118px;
  }

  .page-blog-hub .site-header .container {
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    column-gap: 0;
    row-gap: 0;
  }

  .page-blog-hub .bh-mobile-masthead {
    display: block;
    width: 100%;
    flex: 1 1 100%;
    order: -1;
    padding-bottom: 4px;
  }

  .page-blog-hub .bh-desktop-logo-link {
    display: none !important;
  }

  .page-blog-hub .burger-menu,
  .page-blog-hub .btn-book-now-mobile {
    display: none !important;
  }

  .page-blog-hub .mobile-nav-menu {
    display: none !important;
  }

  /* Top row: Hub burger | centered logo | My Bookings */
  .page-blog-hub .bh-mobile-toprow {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
  }

  .page-blog-hub .bh-hub-burger {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 22, 0.65);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .page-blog-hub .bh-hub-burger:hover,
  .page-blog-hub .bh-hub-burger:focus-visible {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.18);
    outline: none;
  }

  .page-blog-hub .bh-hub-burger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: none;
  }

  .page-blog-hub .bh-hub-burger-lines span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .page-blog-hub .bh-mobile-logo-wrap {
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: min(136px, 42vw);
  }

  .page-blog-hub .bh-mobile-logo-wrap .logo-brand {
    height: 38px;
    max-width: min(136px, 42vw);
    margin: 0 auto;
    object-position: center center;
  }

  .page-blog-hub .site-header.scrolled .bh-mobile-logo-wrap .logo-brand {
    height: 34px;
    max-width: min(124px, 40vw);
  }

  .page-blog-hub .bh-mobile-bookings {
    justify-self: end;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(8, 12, 22, 0.65);
    color: rgba(255, 255, 255, 0.88);
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  }

  .page-blog-hub .bh-mobile-bookings:hover,
  .page-blog-hub .bh-mobile-bookings:focus-visible {
    border-color: rgba(0, 212, 255, 0.45);
    color: #fff;
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
    outline: none;
  }

  /* Compact global nav row — reusable underline/glow (matches desktop pattern, not cyan text) */
  .page-blog-hub .bh-mobile-global-nav {
    margin: 0 -6px;
    padding: 0 2px 2px;
    overflow: hidden;
  }

  .page-blog-hub .bh-mobile-global-nav ul {
    list-style: none;
    margin: 0;
    padding: 2px 4px 6px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .page-blog-hub .bh-mobile-global-nav ul::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }

  .page-blog-hub .bh-mobile-global-nav li {
    flex: 0 0 auto;
    margin: 0;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 5px 12px;
    font-size: clamp(10px, 2.65vw, 11px);
    font-weight: 650;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    color: rgba(200, 211, 224, 0.82);
    transition: color 0.2s ease;
  }

  .page-blog-hub .bh-mobile-global-nav a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    width: calc(100% - 8px);
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.95) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    box-shadow:
      0 0 10px rgba(0, 212, 255, 0.65),
      0 0 22px rgba(0, 212, 255, 0.35);
  }

  .page-blog-hub .bh-mobile-global-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: calc(100% - 12px);
    height: 1px;
    border-radius: 99px;
    background: rgba(0, 212, 255, 0.95);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    filter: blur(0.5px);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.65);
  }

  .page-blog-hub .bh-mobile-global-nav a:hover::before,
  .page-blog-hub .bh-mobile-global-nav a:focus-visible::before,
  .page-blog-hub .bh-mobile-global-nav a.nav-link-active::before {
    opacity: 1;
  }

  .page-blog-hub .bh-mobile-global-nav a:hover::after,
  .page-blog-hub .bh-mobile-global-nav a:focus-visible::after,
  .page-blog-hub .bh-mobile-global-nav a.nav-link-active::after {
    opacity: 1;
  }

  .page-blog-hub .bh-mobile-global-nav a:hover,
  .page-blog-hub .bh-mobile-global-nav a:focus-visible {
    color: rgba(235, 242, 252, 0.95);
    outline: none;
  }

  .page-blog-hub .bh-mobile-global-nav a.nav-link-active {
    color: #fff;
    font-weight: 750;
  }

  /* Hide topic sidebar on small screens — Blog Hub drawer replaces it */
  .page-blog-hub .bh-sidebar-left {
    display: none;
  }

  .page-blog-hub .bh-grid {
    grid-template-columns: 1fr;
  }

  /* Tab chips: horizontal scroll fallback */
  .page-blog-hub .bh-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 3px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .page-blog-hub .bh-tabs::-webkit-scrollbar {
    display: none;
  }

  .page-blog-hub .bh-tab {
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 9px 11px;
  }

  .page-blog-hub .bh-tabbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-blog-hub .bh-wrap {
    max-width: 100%;
    box-sizing: border-box;
  }
}

body.bh-hub-drawer-open {
  overflow: hidden;
}

@media (max-width: 360px) {
  .page-blog-hub .bh-mobile-global-nav a {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 10px;
  }
}

/* Blog Hub drawer (mobile; off-canvas) */
.bh-hub-drawer {
  position: fixed;
  inset: 0;
  z-index: 10050;
  pointer-events: none;
  visibility: hidden;
}

.bh-hub-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.bh-hub-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.bh-hub-drawer.is-open .bh-hub-drawer-backdrop {
  opacity: 1;
}

.bh-hub-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(92vw, 340px);
  max-width: 400px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 28px;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.98) 0%, rgba(6, 9, 16, 0.99) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
  transform: translateX(-104%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bh-hub-drawer.is-open .bh-hub-drawer-panel {
  transform: translateX(0);
}

.bh-hub-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.bh-hub-drawer-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--r-accent, #00d4ff);
}

.bh-hub-drawer-x {
  width: 40px;
  height: 40px;
  margin: -8px -8px 0 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.bh-hub-drawer-x:hover,
.bh-hub-drawer-x:focus-visible {
  background: rgba(0, 212, 255, 0.12);
  color: #fff;
  outline: none;
}

.bh-hub-drawer-title {
  margin: 0 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.bh-hub-drawer-intro {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.52);
}

.bh-drawer-browse-topics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #050a14;
  background: linear-gradient(135deg, #00e5ff 0%, #00b8e6 100%);
  box-shadow: 0 8px 26px rgba(0, 212, 255, 0.35);
  transition: filter 0.2s, transform 0.2s;
}

.bh-drawer-browse-topics:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #050a14;
}

.bh-hub-drawer-nav .bh-hub-drawer-section-label {
  margin: 16px 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.bh-hub-drawer-nav .bh-hub-drawer-section-label:first-of-type {
  margin-top: 4px;
}

.bh-hub-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bh-hub-drawer-list li {
  margin: 0 0 4px;
}

.bh-drawer-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.bh-drawer-topic::after {
  content: "›";
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.65);
}

.bh-drawer-topic:hover,
.bh-drawer-topic:focus-visible {
  background: rgba(0, 212, 255, 0.08);
  border-color: rgba(0, 212, 255, 0.22);
  color: #fff;
  outline: none;
}

.bh-drawer-topic.is-active,
.bh-drawer-topic[aria-current="page"] {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  color: #fff;
}

.bh-hub-drawer-cta {
  margin-top: 22px;
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: linear-gradient(165deg, rgba(0, 212, 255, 0.08) 0%, rgba(8, 12, 22, 0.95) 55%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.bh-hub-drawer-cta h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
}

.bh-hub-drawer-cta p {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.48);
}

.bh-hub-drawer-cta .bh-btn-cyan {
  width: 100%;
}

@media (min-width: 769px) {
  .bh-hub-drawer {
    display: none;
  }
}

/* ============================================================
   Mobile Blog Hub refinements v2
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub .site-header .container {
    display: block;
  }

  .page-blog-hub .bh-mobile-toprow {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 8px;
  }

  .page-blog-hub .bh-hub-burger {
    position: relative;
    overflow: hidden;
  }

  .page-blog-hub .bh-hub-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.94);
    transition: transform 0.22s ease, color 0.22s ease;
  }

  .page-blog-hub .bh-hub-burger[aria-expanded="true"] .bh-hub-toggle-icon {
    transform: rotate(180deg);
    color: var(--r-accent, #00d4ff);
  }

  .page-blog-hub .bh-hub-burger::after {
    content: "";
    position: absolute;
    inset: auto 8px 6px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.95), transparent);
    opacity: 0;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.6);
    transition: opacity 0.22s ease;
  }

  .page-blog-hub .bh-hub-burger:hover::after,
  .page-blog-hub .bh-hub-burger:focus-visible::after,
  .page-blog-hub .bh-hub-burger[aria-expanded="true"]::after {
    opacity: 1;
  }

  .page-blog-hub .bh-mobile-global-nav ul {
    justify-content: space-between;
    gap: clamp(4px, 1.6vw, 10px);
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    font-size: clamp(10px, 2.45vw, 12px);
    font-weight: 750;
    padding-left: clamp(2px, 1.1vw, 5px);
    padding-right: clamp(2px, 1.1vw, 5px);
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-mobile-global-nav ul {
    justify-content: flex-start;
    gap: 4px;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    font-size: 10px;
    padding-left: 3px;
    padding-right: 3px;
  }
}

@media (max-width: 768px) {
  /* Blog uses its own purpose-built mobile masthead/nav row, not the global fallback row. */
  .page-blog-hub .site-header .container > .main-nav {
    display: none !important;
  }
}

/* ============================================================
   Mobile Blog Hub v3 — labeled hub toggle, tighter layout, safer overflow
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub {
    overflow-x: hidden;
  }

  .page-blog-hub .site-header {
    width: 100%;
    overflow: hidden;
  }

  .page-blog-hub .site-header ~ main {
    padding-top: 108px;
  }

  .page-blog-hub .site-header .container {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-blog-hub .bh-mobile-masthead {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 2px;
  }

  .page-blog-hub .bh-mobile-toprow {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-bottom: 3px;
    gap: 6px;
  }

  .page-blog-hub .bh-mobile-logo-wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(132px, 38vw);
    z-index: 1;
  }

  .page-blog-hub .bh-mobile-logo-wrap .logo-brand,
  .page-blog-hub .site-header.scrolled .bh-mobile-logo-wrap .logo-brand {
    height: clamp(32px, 8vw, 38px);
    max-width: min(132px, 38vw);
  }

  .page-blog-hub .bh-mobile-bookings {
    margin-left: auto;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    z-index: 2;
  }

  /* Labeled Hub opener: more intuitive than a generic burger. */
  .page-blog-hub .bh-hub-burger {
    width: auto;
    min-width: 86px;
    height: 40px;
    padding: 0 8px 0 10px;
    gap: 3px;
    justify-content: center;
    border-radius: 11px;
    z-index: 2;
  }

  .page-blog-hub .bh-hub-toggle-label {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
  }

  .page-blog-hub .bh-hub-toggle-icon {
    width: 18px;
    height: 18px;
    margin-left: 1px;
  }

  .page-blog-hub .bh-hub-burger[aria-expanded="true"] .bh-hub-toggle-label {
    color: var(--r-accent, #00d4ff);
  }

  .page-blog-hub .bh-hub-burger[aria-expanded="true"] .bh-hub-toggle-icon {
    transform: rotate(180deg);
  }

  .page-blog-hub .bh-mobile-global-nav {
    margin: 0;
    padding: 0 0 1px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .page-blog-hub .bh-mobile-global-nav ul {
    justify-content: space-between;
    gap: 0;
    padding: 0 0 4px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    min-height: 30px;
    padding: 4px clamp(1px, 0.75vw, 4px) 10px;
    font-size: clamp(10.8px, 2.85vw, 12.4px);
    font-weight: 750;
    letter-spacing: -0.01em;
  }

  .page-blog-hub .bh-wrap {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px 54px;
    overflow: hidden;
  }

  .page-blog-hub .bh-grid,
  .page-blog-hub .bh-main-col,
  .page-blog-hub .bh-cinematic-card,
  .page-blog-hub .bh-tabbar,
  .page-blog-hub .bh-featured,
  .page-blog-hub .bh-result-card,
  .page-blog-hub .bh-library-grid {
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-blog-hub .bh-cinematic-card {
    border-radius: 15px;
    margin-bottom: 16px;
  }

  .page-blog-hub .bh-hero__content,
  .page-blog-hub .bh-featured__content {
    padding: 22px 20px 24px;
  }

  .page-blog-hub .bh-tabbar {
    margin-bottom: 16px;
    padding: 10px;
    border-radius: 14px;
  }

  .page-blog-hub .bh-tabs {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-hub-burger {
    min-width: 80px;
    padding-left: 8px;
    padding-right: 6px;
  }

  .page-blog-hub .bh-hub-toggle-label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    font-size: clamp(10.2px, 2.78vw, 11.4px);
    padding-left: 1px;
    padding-right: 1px;
  }
}

/* Drawer should feel like a side panel, not a full-screen takeover. */
@media (max-width: 768px) {
  .bh-hub-drawer-panel {
    width: min(66vw, 300px);
    min-width: 232px;
    max-width: 300px;
    padding: 16px 14px 24px;
  }

  .bh-hub-drawer-backdrop {
    background: rgba(0, 0, 0, 0.48);
  }

  .bh-hub-drawer-title {
    font-size: 1.05rem;
  }

  .bh-hub-drawer-intro {
    font-size: 0.78rem;
  }

  .bh-drawer-topic {
    padding: 9px 9px;
    font-size: 0.78rem;
  }

  .bh-drawer-browse-topics {
    padding: 12px 12px;
    font-size: 0.76rem;
  }
}

@media (max-width: 340px) {
  .bh-hub-drawer-panel {
    width: min(72vw, 255px);
    min-width: 220px;
  }
}

/* ============================================================
   Mobile Blog Hub v4 — final concept pass
   - visible global nav stays
   - Blog Hub opens as top-down panel
   - mobile content: Hero -> Featured Tool -> Guide Library
   ============================================================ */

.bh-card-read-cta {
  display: none;
}

.bh-featured-tool-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(0, 212, 255, 0.13);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--r-accent, #00d4ff);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.8px;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .page-blog-hub .site-header {
    padding: 8px 10px 6px;
  }

  .page-blog-hub .site-header ~ main {
    padding-top: 102px;
  }

  .page-blog-hub .bh-mobile-toprow {
    min-height: 43px;
    margin-bottom: 4px;
  }

  .page-blog-hub .bh-hub-burger {
    min-width: 104px;
    height: 40px;
    padding: 0 10px;
    border-radius: 13px;
    border-color: rgba(0, 212, 255, 0.28);
    background: rgba(7, 11, 20, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 18px rgba(0, 212, 255, 0.08);
  }

  .page-blog-hub .bh-hub-toggle-label {
    font-size: 10px;
    letter-spacing: 0.075em;
  }

  .page-blog-hub .bh-hub-toggle-icon svg {
    width: 16px;
    height: 16px;
  }

  .page-blog-hub .bh-mobile-logo-wrap {
    max-width: min(128px, 34vw);
  }

  .page-blog-hub .bh-mobile-logo-wrap .logo-brand,
  .page-blog-hub .site-header.scrolled .bh-mobile-logo-wrap .logo-brand {
    height: clamp(31px, 7.4vw, 37px);
    max-width: min(128px, 34vw);
  }

  .page-blog-hub .bh-mobile-bookings {
    width: auto;
    min-width: 40px;
    height: 40px;
    padding: 0 9px;
    gap: 6px;
    border-radius: 13px;
  }

  .page-blog-hub .bh-bookings-label {
    display: none;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.86);
  }

  .page-blog-hub .bh-mobile-global-nav ul {
    justify-content: space-between;
    gap: 0;
    padding-bottom: 5px;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    min-height: 29px;
    padding: 3px clamp(1px, 0.8vw, 4px) 10px;
    font-size: clamp(10.5px, 2.75vw, 12.2px);
    font-weight: 760;
  }

  .page-blog-hub .bh-wrap {
    padding: 6px 10px 54px;
  }

  .page-blog-hub .bh-main-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .page-blog-hub .bh-cinematic-card {
    border-radius: 17px;
  }

  .page-blog-hub .bh-hero--mountain {
    order: 1;
    min-height: 208px;
    margin-bottom: 14px;
    background-position: 76% center;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .page-blog-hub .bh-hero--mountain .bh-cinematic-card__shade {
    background: linear-gradient(90deg,
      rgba(5, 10, 20, 0.94) 0%,
      rgba(5, 10, 20, 0.82) 42%,
      rgba(5, 10, 20, 0.34) 73%,
      rgba(5, 10, 20, 0.12) 100%);
  }

  .page-blog-hub .bh-hero__content {
    max-width: min(76%, 340px);
    padding: 20px 18px 22px;
  }

  .page-blog-hub .bh-hero-badge {
    margin-bottom: 12px;
    padding: 6px 12px;
    font-size: 9px;
    letter-spacing: 1.7px;
  }

  .page-blog-hub .bh-hero__content h1 {
    margin-bottom: 9px;
    font-size: clamp(1.34rem, 6.25vw, 1.72rem);
    line-height: 1.14;
    letter-spacing: -0.045em;
  }

  .page-blog-hub .bh-hero-lede {
    max-width: 25em;
    font-size: clamp(0.82rem, 3.55vw, 0.94rem);
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.68);
  }

  /* On mobile the Blog Hub drawer handles filtering/search. Keep the main page cleaner. */
  .page-blog-hub .bh-tabbar {
    display: none !important;
  }

  /* Desktop featured guide remains; mobile treats guides as part of the Library. */
  .page-blog-hub .bh-featured--guide {
    display: none !important;
  }

  .page-blog-hub .bh-interactive {
    order: 2;
    grid-template-columns: minmax(0, 1fr) minmax(116px, 38%);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(9, 15, 27, 0.82) 0%, rgba(5, 9, 16, 0.94) 100%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  }

  .page-blog-hub .bh-interactive h2 {
    margin-bottom: 9px;
    font-size: clamp(1.18rem, 5.4vw, 1.48rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  .page-blog-hub .bh-interactive p {
    margin-bottom: 14px;
    font-size: clamp(0.78rem, 3.35vw, 0.9rem);
    line-height: 1.5;
  }

  .page-blog-hub .bh-preview-visual {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 14px;
  }

  .page-blog-hub .bh-preview-visual img {
    object-position: 55% top;
  }

  .page-blog-hub .bh-preview-pulse {
    width: 38px;
    height: 38px;
    left: 63%;
    top: 36%;
  }

  .page-blog-hub .bh-btn-outline {
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 0.65rem;
    letter-spacing: 0.7px;
  }

  .page-blog-hub .bh-articles-section {
    order: 3;
  }

  .page-blog-hub .bh-articles-head {
    align-items: center;
    margin: 0 2px 11px;
  }

  .page-blog-hub .bh-articles-head h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.02rem, 4.5vw, 1.2rem);
    line-height: 1.15;
  }

  .page-blog-hub .bh-articles-head h2::before {
    content: "";
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 4px;
    box-shadow: inset 7px 0 0 rgba(0, 212, 255, 0.18);
    opacity: 0.9;
  }

  .page-blog-hub .bh-articles-head a {
    font-size: 0.78rem;
  }

  .page-blog-hub .bh-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-blog-hub .bh-article-card {
    position: relative;
    min-height: 132px;
    flex-direction: row;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(10, 16, 28, 0.92) 0%, rgba(5, 9, 16, 0.98) 100%);
  }

  .page-blog-hub .bh-article-card:hover {
    transform: none;
  }

  .page-blog-hub .bh-article-card__media {
    width: 36%;
    min-width: 124px;
    height: auto;
    flex: 0 0 36%;
  }

  .page-blog-hub .bh-article-card__media img {
    height: 100%;
  }

  .page-blog-hub .bh-article-card__top,
  .page-blog-hub .bh-article-card__fade {
    display: none;
  }

  .page-blog-hub .bh-article-card__body {
    min-width: 0;
    padding: 12px 12px 12px 13px;
  }

  .page-blog-hub .bh-article-card-foot {
    order: -1;
    margin: 0 0 6px;
    padding: 0;
    border: none;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.48);
  }

  .page-blog-hub .bh-article-card__body h3 {
    margin-bottom: 6px;
    font-size: clamp(0.88rem, 3.75vw, 1.02rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  .page-blog-hub .bh-article-card__body > p.excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    font-size: 0.74rem;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.58);
  }

  .page-blog-hub .bh-card-read-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #05101b;
    font-size: 0.72rem;
    font-weight: 850;
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.24);
  }

  .page-blog-hub .bh-load-more-wrap {
    margin-top: 14px;
  }

  .page-blog-hub .bh-load-more-btn {
    width: 100%;
    padding: 13px 18px;
    border-radius: 14px;
  }
}

@media (min-width: 392px) and (max-width: 768px) {
  .page-blog-hub .bh-mobile-bookings {
    padding-left: 9px;
    padding-right: 10px;
  }

  .page-blog-hub .bh-bookings-label {
    display: inline-flex;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .site-header ~ main {
    padding-top: 100px;
  }

  .page-blog-hub .bh-hub-burger {
    min-width: 92px;
    padding-left: 8px;
    padding-right: 7px;
  }

  .page-blog-hub .bh-hub-toggle-label {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .page-blog-hub .bh-hero__content {
    max-width: 82%;
    padding: 18px 16px 20px;
  }

  .page-blog-hub .bh-article-card__media {
    min-width: 112px;
    flex-basis: 34%;
  }

  .page-blog-hub .bh-card-read-cta {
    padding: 7px 10px;
    font-size: 0.68rem;
  }
}

/* Top-down Blog Hub panel on mobile. */
@media (max-width: 768px) {
  .bh-hub-drawer-backdrop {
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  .bh-hub-drawer-panel {
    left: 10px;
    right: 10px;
    top: 76px;
    bottom: auto;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(74vh, 640px);
    border-right: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(0, 212, 255, 0.08);
    transform: translateY(-18px) scale(0.985);
    opacity: 0;
    transform-origin: top center;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
  }

  .bh-hub-drawer.is-open .bh-hub-drawer-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  .bh-hub-drawer-head {
    margin-bottom: 4px;
  }

  .bh-hub-drawer-title {
    font-size: 1.16rem;
  }

  .bh-hub-drawer-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* ============================================================
   Mobile Blog Hub v5 — compact embedded hero + background tool card
   ============================================================ */
@media (max-width: 768px) {
  /* Keep the header/navigation, but let the actual page content start tighter. */
  .page-blog-hub .site-header ~ main {
    padding-top: 100px;
  }

  .page-blog-hub .bh-wrap {
    padding-top: 2px;
  }

  /* Hero should feel like a page section, not a heavy standalone tile. */
  .page-blog-hub .bh-hero--mountain {
    width: calc(100% + 20px);
    max-width: none;
    min-height: 174px;
    margin: -2px -10px 12px;
    border: 0;
    border-radius: 0 0 18px 18px;
    box-shadow: none;
    overflow: hidden;
    background-position: 74% center;
  }

  .page-blog-hub .bh-hero--mountain::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.28), transparent);
    pointer-events: none;
  }

  .page-blog-hub .bh-hero--mountain .bh-cinematic-card__shade {
    background:
      radial-gradient(circle at 74% 54%, rgba(0, 212, 255, 0.06), transparent 30%),
      linear-gradient(90deg,
        rgba(4, 8, 16, 0.98) 0%,
        rgba(4, 8, 16, 0.86) 42%,
        rgba(4, 8, 16, 0.42) 70%,
        rgba(4, 8, 16, 0.18) 100%),
      linear-gradient(180deg, rgba(2, 4, 9, 0.18) 0%, rgba(2, 4, 9, 0.5) 100%);
  }

  .page-blog-hub .bh-hero__content {
    max-width: min(72%, 310px);
    padding: 16px 18px 18px;
  }

  .page-blog-hub .bh-hero-badge {
    margin-bottom: 10px;
    padding: 6px 11px;
    font-size: 8.8px;
    letter-spacing: 1.55px;
  }

  .page-blog-hub .bh-hero__content h1 {
    margin-bottom: 8px;
    font-size: clamp(1.22rem, 5.55vw, 1.48rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
  }

  .page-blog-hub .bh-hero-lede {
    display: -webkit-box;
    max-width: 25em;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(0.77rem, 3.25vw, 0.86rem);
    line-height: 1.42;
    color: rgba(255, 255, 255, 0.66);
  }

  /* Featured Tool becomes one compact background card, similar in weight to library cards. */
  .page-blog-hub .bh-interactive {
    position: relative;
    display: block;
    min-height: 148px;
    margin: 0 0 16px;
    padding: 15px 16px;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.16);
    background:
      linear-gradient(90deg,
        rgba(5, 10, 20, 0.98) 0%,
        rgba(5, 10, 20, 0.9) 48%,
        rgba(5, 10, 20, 0.34) 70%,
        rgba(5, 10, 20, 0.1) 100%),
      linear-gradient(180deg, rgba(5, 10, 20, 0.18), rgba(5, 10, 20, 0.68)),
      url('/assets/images/icbc-road-test-results.webp') 96% center / auto 120% no-repeat,
      linear-gradient(135deg, rgba(9, 15, 27, 0.92), rgba(5, 9, 16, 0.98));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }

  .page-blog-hub .bh-interactive::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 84% 40%, rgba(0, 212, 255, 0.12), transparent 24%);
    opacity: 0.75;
  }

  .page-blog-hub .bh-interactive-copy {
    position: relative;
    z-index: 1;
    max-width: min(67%, 270px);
  }

  .page-blog-hub .bh-featured-tool-label {
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 8.7px;
    letter-spacing: 1.45px;
  }

  .page-blog-hub .bh-interactive h2 {
    margin-bottom: 7px;
    font-size: clamp(1.02rem, 4.6vw, 1.24rem);
    line-height: 1.11;
    letter-spacing: -0.035em;
  }

  .page-blog-hub .bh-interactive p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(0.72rem, 3.05vw, 0.82rem);
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.58);
  }

  .page-blog-hub .bh-interactive .bh-btn-outline {
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 0.58rem;
    letter-spacing: 0.55px;
    max-width: 100%;
  }

  .page-blog-hub .bh-preview-visual {
    display: none !important;
  }

  .page-blog-hub .bh-articles-head {
    margin-top: 0;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-hero--mountain {
    min-height: 164px;
  }

  .page-blog-hub .bh-hero__content {
    max-width: 76%;
    padding: 15px 16px 17px;
  }

  .page-blog-hub .bh-hero__content h1 {
    font-size: clamp(1.12rem, 5.45vw, 1.34rem);
  }

  .page-blog-hub .bh-interactive {
    min-height: 142px;
    padding: 14px;
    background-size: auto 115%, auto, auto 125%, auto;
    background-position: center, center, 104% center, center;
  }

  .page-blog-hub .bh-interactive-copy {
    max-width: 69%;
  }
}


/* ============================================================
   Mobile Blog Hub v6 — result-sheet background crop + scrolled header polish
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub .site-header.scrolled {
    background:
      linear-gradient(180deg, rgba(3, 6, 13, 0.96), rgba(3, 6, 13, 0.88));
    border-bottom: 1px solid rgba(0, 212, 255, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255, 255, 255, 0.035) inset;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  /* Keep the Featured Tool compact, but show the actual result sheet on the right instead of cropping to the dashboard/radio. */
  .page-blog-hub .bh-interactive {
    isolation: isolate;
    min-height: 146px;
    background:
      linear-gradient(135deg, rgba(8, 14, 26, 0.96), rgba(5, 9, 16, 0.98));
  }

  .page-blog-hub .bh-interactive::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    background-image: url('/assets/images/icbc-road-test-results.webp');
    background-size: cover;
    background-position: 28% center;
    background-repeat: no-repeat;
    opacity: 0.96;
    filter: brightness(0.9) saturate(0.96);
    pointer-events: none;
  }

  .page-blog-hub .bh-interactive::before {
    z-index: 1;
    background:
      linear-gradient(90deg,
        rgba(5, 10, 20, 1) 0%,
        rgba(5, 10, 20, 0.98) 46%,
        rgba(5, 10, 20, 0.82) 58%,
        rgba(5, 10, 20, 0.38) 76%,
        rgba(5, 10, 20, 0.06) 100%),
      radial-gradient(circle at 86% 46%, rgba(0, 212, 255, 0.16), transparent 26%);
    opacity: 1;
  }

  .page-blog-hub .bh-interactive-copy {
    z-index: 2;
    max-width: min(58%, 250px);
  }

  .page-blog-hub .bh-interactive p {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-interactive::after {
    width: 43%;
    background-size: cover;
    background-position: 24% center;
  }

  .page-blog-hub .bh-interactive-copy {
    max-width: 60%;
  }
}

/* ============================================================
   Mobile Blog Hub v7 — icon resource navigator under Featured Tool
   ============================================================ */
.bh-mobile-resource-nav {
  display: none;
}

@media (max-width: 768px) {
  .page-blog-hub .bh-mobile-resource-nav {
    position: sticky;
    top: 104px;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 13px;
    padding: 8px 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background:
      linear-gradient(180deg, rgba(9, 14, 25, 0.96), rgba(5, 9, 17, 0.93));
    box-shadow:
      0 14px 34px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .page-blog-hub .bh-mobile-resource-nav::-webkit-scrollbar {
    display: none;
  }

  .page-blog-hub .bh-mobile-resource-pill,
  .page-blog-hub .bh-mobile-resource-filter {
    flex: 0 0 auto;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 15, 26, 0.76);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  .page-blog-hub .bh-mobile-resource-pill svg,
  .page-blog-hub .bh-mobile-resource-filter svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    opacity: 0.95;
  }

  .page-blog-hub .bh-mobile-resource-pill:hover,
  .page-blog-hub .bh-mobile-resource-pill:focus-visible,
  .page-blog-hub .bh-mobile-resource-filter:hover,
  .page-blog-hub .bh-mobile-resource-filter:focus-visible {
    color: #fff;
    border-color: rgba(0, 212, 255, 0.28);
    background: rgba(0, 212, 255, 0.08);
    outline: none;
  }

  .page-blog-hub .bh-mobile-resource-pill.is-active,
  .page-blog-hub .bh-mobile-resource-pill.is-current,
  .page-blog-hub .bh-mobile-resource-pill[aria-current="true"] {
    color: #03101a;
    border-color: rgba(0, 212, 255, 0.76);
    background: linear-gradient(135deg, #00d4ff, #04a9d8);
    box-shadow:
      0 0 0 1px rgba(0, 212, 255, 0.18),
      0 8px 24px rgba(0, 212, 255, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }

  .page-blog-hub .bh-mobile-resource-filter {
    min-width: 42px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: auto;
  }

  .page-blog-hub .bh-articles-head {
    margin-top: 2px;
    margin-bottom: 10px;
  }

  .page-blog-hub .bh-articles-head a {
    display: none;
  }

  .page-blog-hub .bh-articles-head h2 {
    font-size: clamp(1.03rem, 4.55vw, 1.22rem);
    letter-spacing: -0.02em;
  }

  /* Refine mobile library cards to match the selected v7 direction: tighter, icon-control-first, useful feed. */
  .page-blog-hub .bh-article-card {
    min-height: 126px;
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  .page-blog-hub .bh-article-card__media {
    flex-basis: 35%;
    min-width: 118px;
  }

  .page-blog-hub .bh-article-card__body {
    padding: 11px 11px 11px 12px;
  }

  .page-blog-hub .bh-article-card-foot::before {
    content: "◷";
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.38);
  }

  .page-blog-hub .bh-card-read-cta {
    border-radius: 11px;
    padding: 8px 11px;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-mobile-resource-nav {
    top: 100px;
    gap: 6px;
    padding: 7px 6px;
    margin-bottom: 12px;
  }

  .page-blog-hub .bh-mobile-resource-pill,
  .page-blog-hub .bh-mobile-resource-filter {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.73rem;
  }

  .page-blog-hub .bh-mobile-resource-pill svg,
  .page-blog-hub .bh-mobile-resource-filter svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================================
   v8 mobile resource filters: compact text chips + dropdowns
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub .bh-mobile-resource-nav {
    overflow: visible;
    gap: 5px;
    padding: 6px;
    margin: 0 0 12px;
    border-radius: 15px;
  }

  .page-blog-hub .bh-mobile-resource-menu {
    position: relative;
    flex: 0 0 auto;
  }

  .page-blog-hub .bh-mobile-resource-pill,
  .page-blog-hub .bh-mobile-resource-trigger {
    min-height: 32px;
    gap: 4px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
  }

  .page-blog-hub .bh-mobile-resource-pill svg,
  .page-blog-hub .bh-mobile-resource-filter {
    display: none !important;
  }

  .page-blog-hub .bh-chip-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-1px);
    color: currentColor;
    font-size: 0.76em;
    opacity: 0.8;
    transition: transform .18s ease, opacity .18s ease;
  }

  .page-blog-hub .bh-mobile-resource-menu.is-open .bh-chip-chevron {
    transform: translateY(-1px) rotate(180deg);
    opacity: 1;
  }

  .page-blog-hub .bh-mobile-resource-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 80;
    min-width: 168px;
    padding: 7px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: linear-gradient(180deg, rgba(8, 13, 24, 0.98), rgba(4, 8, 16, 0.98));
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.56), 0 0 22px rgba(0, 212, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px) scale(0.98);
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }

  .page-blog-hub .bh-mobile-resource-dropdown--right {
    left: auto;
    right: 0;
  }

  .page-blog-hub .bh-mobile-resource-menu.is-open .bh-mobile-resource-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .page-blog-hub .bh-mobile-resource-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.78rem;
    font-weight: 740;
    text-decoration: none;
  }

  .page-blog-hub .bh-mobile-resource-dropdown a:hover,
  .page-blog-hub .bh-mobile-resource-dropdown a:focus-visible,
  .page-blog-hub .bh-mobile-resource-dropdown a[aria-current="true"] {
    color: #03101a;
    background: linear-gradient(135deg, #00d4ff, #04a9d8);
    outline: none;
  }

  .page-blog-hub .bh-mobile-resource-menu.is-parent-active > .bh-mobile-resource-trigger,
  .page-blog-hub .bh-mobile-resource-trigger[aria-expanded="true"] {
    color: #03101a;
    border-color: rgba(0, 212, 255, 0.76);
    background: linear-gradient(135deg, #00d4ff, #04a9d8);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-mobile-resource-pill,
  .page-blog-hub .bh-mobile-resource-trigger {
    min-height: 30px;
    padding: 7px 7px;
    font-size: 0.64rem;
  }

  .page-blog-hub .bh-mobile-resource-nav {
    gap: 4px;
    padding: 5px;
  }
}


/* ============================================================
   Mobile Blog Hub v9 — centered library heading with cyan accent line
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub .bh-articles-head {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 13px;
    text-align: center;
  }

  .page-blog-hub .bh-articles-head h2 {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    width: min(100%, 340px);
    text-align: center;
    font-size: clamp(1.12rem, 5vw, 1.34rem);
    line-height: 1.12;
    letter-spacing: 0;
    color: #fff;
    text-shadow: 0 0 18px rgba(0, 212, 255, 0.14);
  }

  .page-blog-hub .bh-articles-head h2::before {
    content: none;
    display: none !important;
  }

  .page-blog-hub .bh-articles-head h2::after {
    content: "";
    display: block;
    width: 86px;
    max-width: 32vw;
    height: 3px;
    margin-top: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0), rgba(0, 212, 255, 0.96), rgba(0, 212, 255, 0));
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.42), 0 0 24px rgba(0, 212, 255, 0.2);
  }
}

/* Desktop hero integration: make the Blog Hub opener feel like page background, not a clickable card. */
@media (min-width: 769px) {
  .page-blog-hub .bh-main-col {
    position: relative;
  }

  .page-blog-hub .bh-hero--mountain {
    width: calc(100% + 64px);
    min-height: 382px;
    margin: -22px -32px 22px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-position: 74% center;
    box-shadow: none;
    cursor: default;
  }

  .page-blog-hub .bh-hero--mountain::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 138px;
    background: linear-gradient(180deg, rgba(5, 9, 17, 0), rgba(5, 9, 17, 0.78) 62%, rgba(5, 9, 17, 0.98) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .page-blog-hub .bh-hero--mountain .bh-cinematic-card__shade {
    background:
      radial-gradient(circle at 76% 46%, rgba(0, 212, 255, 0.1), transparent 31%),
      linear-gradient(90deg,
        rgba(4, 8, 16, 0.98) 0%,
        rgba(4, 8, 16, 0.93) 34%,
        rgba(4, 8, 16, 0.58) 58%,
        rgba(4, 8, 16, 0.2) 82%,
        rgba(4, 8, 16, 0.06) 100%),
      linear-gradient(180deg, rgba(2, 4, 9, 0.16), rgba(2, 4, 9, 0.58));
  }

  .page-blog-hub .bh-hero__content {
    z-index: 2;
    max-width: min(56%, 650px);
    padding: 54px 42px 76px;
  }

  .page-blog-hub .bh-hero--mountain .bh-hero-badge {
    padding: 0;
    margin-bottom: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--r-accent, #00d4ff);
  }

  .page-blog-hub .bh-hero__content h1 {
    max-width: 10em;
    font-size: clamp(2.1rem, 3.8vw, 3.45rem);
    line-height: 1.02;
  }

  .page-blog-hub .bh-hero-lede {
    max-width: 42em;
    color: rgba(255, 255, 255, 0.68);
  }
}


/* ============================================================
   ChatGPT refinements — hero blend + equal stacked feature tools
   ============================================================ */
.bh-interactive {
  --bh-interactive-image: url('/assets/images/icbc-road-test-results.webp');
}

.bh-interactive--sheet {
  --bh-interactive-image: url('/assets/images/icbc-road-test-results.webp');
}

.bh-interactive--map {
  --bh-interactive-image: url('/assets/images/blog/interactive/chilliwack-road-test-route-lab-cover.webp');
}

.bh-featured--ghost {
  display: none !important;
}

.bh-preview-visual img {
  object-position: center;
}

@media (min-width: 769px) {
  .page-blog-hub .bh-hero--mountain {
    width: calc(100% + 56px);
    min-height: 332px;
    margin: -16px -28px 20px;
    border: 0;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    background-position: 76% center;
    box-shadow: none;
  }

  .page-blog-hub .bh-hero--mountain::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 9, 17, 0.08) 0%, rgba(5, 9, 17, 0) 22%, rgba(5, 9, 17, 0.26) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .page-blog-hub .bh-hero--mountain::after {
    height: 118px;
    background: linear-gradient(180deg, rgba(5, 9, 17, 0) 0%, rgba(5, 9, 17, 0.68) 56%, rgba(5, 9, 17, 0.98) 100%);
    z-index: 2;
  }

  .page-blog-hub .bh-hero__content {
    z-index: 3;
    max-width: min(54%, 620px);
    padding: 46px 38px 64px;
  }

  .page-blog-hub .bh-hero__content h1 {
    max-width: 9.5em;
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.4vw, 3.15rem);
    line-height: 1.01;
  }

  .page-blog-hub .bh-hero-lede {
    max-width: 39em;
    font-size: 1rem;
    line-height: 1.55;
  }

  .page-blog-hub .bh-interactive {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 42%);
    gap: 26px 30px;
    min-height: 248px;
    padding: 24px 26px;
    margin-bottom: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(9, 14, 24, 0.78), rgba(6, 9, 16, 0.94));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  }

  .page-blog-hub .bh-interactive::before,
  .page-blog-hub .bh-interactive::after {
    display: none;
  }

  .page-blog-hub .bh-interactive-copy {
    max-width: 100%;
  }

  .page-blog-hub .bh-featured-tool-label {
    margin-bottom: 12px;
  }

  .page-blog-hub .bh-interactive h2 {
    margin-bottom: 10px;
    font-size: clamp(1.42rem, 2.2vw, 1.82rem);
    line-height: 1.08;
  }

  .page-blog-hub .bh-interactive p {
    display: block;
    margin-bottom: 16px;
    font-size: 0.96rem;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.64);
  }

  .page-blog-hub .bh-interactive .bh-btn-outline {
    padding: 12px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.7px;
  }

  .page-blog-hub .bh-preview-visual {
    display: block !important;
    min-height: 198px;
    aspect-ratio: 16 / 9;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
  }

  .page-blog-hub .bh-preview-visual img {
    object-fit: cover;
    object-position: center;
  }

  .page-blog-hub .bh-interactive--sheet .bh-preview-visual img {
    object-position: center top;
  }

  .page-blog-hub .bh-interactive--map .bh-preview-visual img {
    object-position: center center;
  }
}

@media (max-width: 768px) {
  .page-blog-hub .bh-hero--mountain {
    min-height: 166px;
    margin-bottom: 12px;
  }

  .page-blog-hub .bh-hero__content {
    max-width: min(72%, 300px);
    padding: 15px 18px 17px;
  }

  .page-blog-hub .bh-hero__content h1 {
    margin-bottom: 7px;
    font-size: clamp(1.18rem, 5.35vw, 1.42rem);
  }

  .page-blog-hub .bh-hero-lede {
    -webkit-line-clamp: 2;
    font-size: clamp(0.75rem, 3.1vw, 0.84rem);
  }

  .page-blog-hub .bh-interactive {
    min-height: 146px;
    background: linear-gradient(135deg, rgba(8, 14, 26, 0.96), rgba(5, 9, 16, 0.98));
  }

  .page-blog-hub .bh-interactive::after {
    background-image: var(--bh-interactive-image);
  }

  .page-blog-hub .bh-interactive--map::after {
    background-size: cover;
    background-position: center center;
    opacity: 0.94;
  }

  .page-blog-hub .bh-interactive--map::before {
    background:
      linear-gradient(90deg,
        rgba(5, 10, 20, 1) 0%,
        rgba(5, 10, 20, 0.98) 44%,
        rgba(5, 10, 20, 0.84) 58%,
        rgba(5, 10, 20, 0.46) 76%,
        rgba(5, 10, 20, 0.1) 100%),
      radial-gradient(circle at 86% 46%, rgba(0, 212, 255, 0.14), transparent 26%);
  }

  .page-blog-hub .bh-interactive-copy {
    max-width: min(58%, 240px);
  }

  .page-blog-hub .bh-interactive--map .bh-interactive-copy {
    max-width: min(61%, 250px);
  }

  .page-blog-hub .bh-interactive h2 {
    font-size: clamp(1.12rem, 5.05vw, 1.38rem);
  }

  .page-blog-hub .bh-interactive p {
    -webkit-line-clamp: 3;
  }
}

/* ============================================================
   Blog app shell alignment for desktop article and hub pages
   Left Blog Hub rail keeps the original hub look. The global site
   header moves into the right content pane so only the main content
   changes between /blog/ and article URLs.
   ============================================================ */
@media (min-width: 1025px) {
  .page-blog-hub .site-header {
    position: fixed;
    top: 14px;
    left: max(326px, calc((100vw - 1440px) / 2 + 326px));
    right: max(18px, calc((100vw - 1440px) / 2 + 18px));
    z-index: 1000;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-blog-hub .site-header.scrolled {
    padding: 0;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .page-blog-hub .site-header .container {
    max-width: none;
    min-height: 58px;
    padding: 0;
  }

  .page-blog-hub .site-header ~ main {
    padding-top: 0 !important;
  }

  .page-blog-hub .bh-wrap {
    padding-top: 14px;
  }

  .page-blog-hub .bh-sidebar-left {
    top: 14px;
  }

  .page-blog-hub .bh-main-col {
    min-width: 0;
    padding-top: 72px;
  }

  .page-blog-hub .bh-hero--mountain {
    margin-top: 0;
  }
}



/* ============================================================
   Mobile resource nav compact fit pass — keeps the full chip row
   inside the Road Test Guide Library card on narrow phones.
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub .bh-articles-section .bh-mobile-resource-nav {
    gap: 4px;
    padding: 6px 5px;
    overflow: visible;
  }

  .page-blog-hub .bh-articles-section .bh-mobile-resource-menu,
  .page-blog-hub .bh-articles-section .bh-mobile-resource-pill {
    flex: 1 1 0;
    min-width: 0;
  }

  .page-blog-hub .bh-articles-section .bh-mobile-resource-pill,
  .page-blog-hub .bh-articles-section .bh-mobile-resource-trigger {
    min-height: 31px;
    gap: 3px;
    padding: 7px 3px;
    font-size: clamp(0.59rem, 2.55vw, 0.69rem);
    letter-spacing: -0.01em;
  }

  .page-blog-hub .bh-articles-section .bh-chip-chevron {
    transform: translateY(-1px) scale(0.86);
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-articles-section .bh-mobile-resource-nav {
    gap: 3px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .page-blog-hub .bh-articles-section .bh-mobile-resource-pill,
  .page-blog-hub .bh-articles-section .bh-mobile-resource-trigger {
    font-size: 0.58rem;
    padding-left: 2px;
    padding-right: 2px;
  }
}


/* Mobile header compact bottom pass: trim only the lower black space under the nav row. */
@media (max-width: 768px) {
  .page-blog-hub .site-header {
    padding-bottom: 0 !important;
  }

  .page-blog-hub .site-header ~ main {
    padding-top: 98px !important;
  }

  .page-blog-hub .bh-mobile-masthead {
    padding-bottom: 0 !important;
  }

  .page-blog-hub .bh-mobile-toprow {
    min-height: 40px !important;
    margin-bottom: 0 !important;
  }

  .page-blog-hub .bh-mobile-global-nav {
    padding-bottom: 0 !important;
  }

  .page-blog-hub .bh-mobile-global-nav ul {
    padding-bottom: 0 !important;
  }

  .page-blog-hub .bh-mobile-global-nav a {
    min-height: 27px !important;
    padding-top: 3px !important;
    padding-bottom: 5px !important;
  }
}


/* ============================================================
   Mobile Blog Hub Road Test Guide Library visual match
   Matches the approved article-page mobile treatment:
   bright white title, cyan glow underline, full-width dark tab band.
   Mobile only. Desktop untouched.
   ============================================================ */
@media (max-width: 768px) {
  .page-blog-hub .bh-articles-section {
    padding-top: 0 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .page-blog-hub .bh-articles-head {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 14px !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .page-blog-hub .bh-articles-head a {
    display: none !important;
  }

  .page-blog-hub .bh-articles-head h2 {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 10px !important;
    color: #ffffff !important;
    font-size: clamp(1.06rem, 5vw, 1.28rem) !important;
    line-height: 1.06 !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em !important;
    text-align: center !important;
    text-transform: none !important;
    text-shadow:
      0 0 16px rgba(0, 212, 255, 0.28),
      0 0 30px rgba(0, 212, 255, 0.14),
      0 1px 0 rgba(0, 0, 0, 0.7) !important;
  }

  .page-blog-hub .bh-articles-head h2::before {
    content: none !important;
    display: none !important;
  }

  .page-blog-hub .bh-articles-head h2::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 0 !important;
    transform: translateX(-50%) !important;
    width: min(168px, 72%) !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(125, 247, 255, 0.9) 28%, #00d4ff 50%, rgba(125, 247, 255, 0.9) 72%, transparent 100%) !important;
    opacity: 1 !important;
    pointer-events: none !important;
    box-shadow:
      0 0 8px rgba(0, 212, 255, 0.95),
      0 0 22px rgba(0, 212, 255, 0.58),
      0 0 38px rgba(0, 212, 255, 0.28) !important;
  }

  .page-blog-hub .bh-mobile-resource-nav {
    position: relative !important;
    top: auto !important;
    isolation: isolate !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 calc(50% - 50vw) 6px !important;
    padding: 8px 0 10px !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background:
      radial-gradient(ellipse at 50% 115%, rgba(0, 212, 255, 0.18) 0%, rgba(0, 212, 255, 0.06) 34%, transparent 70%),
      linear-gradient(180deg, rgba(9, 15, 27, 0.9) 0%, rgba(4, 9, 18, 0.96) 100%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.055),
      0 18px 44px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  .page-blog-hub .bh-mobile-resource-nav::before {
    content: "" !important;
    position: absolute !important;
    left: -24px !important;
    right: -24px !important;
    bottom: -34px !important;
    height: 58px !important;
    border-radius: 999px !important;
    background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.32) 0%, rgba(0, 212, 255, 0.14) 36%, transparent 74%) !important;
    opacity: 0.9 !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  .page-blog-hub .bh-mobile-resource-nav::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.72) 22%, rgba(125, 247, 255, 0.95) 50%, rgba(0, 212, 255, 0.72) 78%, transparent 100%) !important;
    pointer-events: none !important;
    box-shadow:
      0 0 12px rgba(0, 212, 255, 0.88),
      0 0 28px rgba(0, 212, 255, 0.38) !important;
  }

  .page-blog-hub .bh-mobile-resource-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .page-blog-hub .bh-mobile-resource-menu,
  .page-blog-hub .bh-mobile-resource-pill {
    position: relative !important;
    z-index: 2 !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }

  .page-blog-hub .bh-mobile-resource-pill,
  .page-blog-hub .bh-mobile-resource-trigger {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 34px !important;
    padding: 8px 1px 11px !important;
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(208, 220, 233, 0.84) !important;
    font-size: clamp(9.5px, 2.65vw, 11px) !important;
    font-weight: 720 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease, text-shadow 0.2s ease !important;
  }

  .page-blog-hub .bh-mobile-resource-pill::after,
  .page-blog-hub .bh-mobile-resource-trigger::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 4px !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 14px) !important;
    height: 2px !important;
    border-radius: 99px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.98) 50%, transparent 100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.68), 0 0 22px rgba(0, 212, 255, 0.36) !important;
    transition: opacity 0.2s ease !important;
  }

  .page-blog-hub .bh-mobile-resource-pill:hover,
  .page-blog-hub .bh-mobile-resource-pill:focus-visible,
  .page-blog-hub .bh-mobile-resource-trigger:hover,
  .page-blog-hub .bh-mobile-resource-trigger:focus-visible {
    color: #ffffff !important;
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.24) !important;
    outline: none !important;
  }

  .page-blog-hub .bh-mobile-resource-pill:hover::after,
  .page-blog-hub .bh-mobile-resource-pill:focus-visible::after,
  .page-blog-hub .bh-mobile-resource-pill.is-active::after,
  .page-blog-hub .bh-mobile-resource-pill.is-current::after,
  .page-blog-hub .bh-mobile-resource-pill[aria-current="true"]::after,
  .page-blog-hub .bh-mobile-resource-menu.is-parent-active > .bh-mobile-resource-trigger::after,
  .page-blog-hub .bh-mobile-resource-trigger:hover::after,
  .page-blog-hub .bh-mobile-resource-trigger:focus-visible::after,
  .page-blog-hub .bh-mobile-resource-trigger[aria-expanded="true"]::after {
    opacity: 1 !important;
  }

  .page-blog-hub .bh-mobile-resource-pill.is-active,
  .page-blog-hub .bh-mobile-resource-pill.is-current,
  .page-blog-hub .bh-mobile-resource-pill[aria-current="true"],
  .page-blog-hub .bh-mobile-resource-menu.is-parent-active > .bh-mobile-resource-trigger,
  .page-blog-hub .bh-mobile-resource-trigger[aria-expanded="true"] {
    color: #ffffff !important;
    font-weight: 820 !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    text-shadow: 0 0 14px rgba(0, 212, 255, 0.28) !important;
  }

  .page-blog-hub .bh-chip-chevron {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-mobile-resource-nav {
    padding-top: 7px !important;
    padding-bottom: 9px !important;
  }

  .page-blog-hub .bh-mobile-resource-pill,
  .page-blog-hub .bh-mobile-resource-trigger {
    min-height: 32px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-size: clamp(8.8px, 2.55vw, 10px) !important;
  }
}

/* Curated embedded video cards for the Blog Hub Videos filter. */
.bh-video-card {
  color: inherit;
  display: flex;
  flex-direction: column;
}

.bh-video-card .bh-article-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.bh-video-card .bh-article-card__body > p.excerpt {
  min-height: 6.2em;
}

.bh-video-card:hover {
  transform: translateY(-2px);
}

.bh-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.16), transparent 32%),
    #050914;
}

.bh-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.bh-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.bh-video-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 999px;
  color: rgba(218, 250, 255, 0.86);
  background: rgba(0, 212, 255, 0.08);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bh-video-channel {
  color: rgba(119, 240, 255, 0.88);
  font-weight: 850;
  text-decoration: none;
}

.bh-video-channel:hover,
.bh-video-channel:focus-visible {
  color: #fff;
}


.bh-video-learning-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  min-height: 82px;
}

.bh-video-learning-link > span {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
  line-height: 1.45;
}

.bh-video-learning-link .bh-video-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  color: rgba(142, 247, 255, 0.95);
  font-size: 0.74rem;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.bh-video-learning-link .bh-video-channel:hover,
.bh-video-learning-link .bh-video-channel:focus-visible {
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.14);
}

@media (max-width: 980px) {
  .page-blog-hub .bh-video-card {
    display: block;
  }

  .page-blog-hub .bh-video-frame {
    min-height: 0;
  }

  .bh-video-card .bh-article-card__body > p.excerpt {
    min-height: 0;
  }

  .bh-video-learning-link {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
  }

  .bh-video-learning-link .bh-video-channel {
    justify-self: start;
    width: auto;
  }
}

/* Pass 16: fix mobile video-card reading order.
   Generic mobile article cards move .bh-article-card-foot to the top; video cards need
   the learning/decoder row after the title, note, and skill tags. */
@media (max-width: 980px) {
  .page-blog-hub .bh-video-card .bh-article-card__body {
    display: flex;
    flex-direction: column;
  }

  .page-blog-hub .bh-video-card .bh-article-card__body h3 {
    order: 1;
  }

  .page-blog-hub .bh-video-card .bh-article-card__body > p.excerpt {
    order: 2;
  }

  .page-blog-hub .bh-video-card .bh-video-meta {
    order: 3;
    margin: 12px 0 0;
  }

  .page-blog-hub .bh-video-card .bh-video-learning-link {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-blog-hub .bh-video-card .bh-video-learning-link::before {
    content: none;
  }

  .page-blog-hub .bh-video-card .bh-video-learning-link .bh-video-channel {
    order: 1;
  }

  .page-blog-hub .bh-video-card .bh-video-learning-link > span {
    order: 2;
  }
}


/* ============================================================
   ChatGPT pass — Blog Hub compact control-panel hero
   Replaces the decorative mountain/car banner with a useful quick-navigation hub.
   ============================================================ */
.page-blog-hub .bh-hub-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: center;
  min-height: 236px;
  margin: 0 0 22px;
  padding: 30px 32px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 78% 32%, rgba(0, 212, 255, 0.16), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(0, 139, 255, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(7, 12, 22, 0.98), rgba(3, 8, 16, 0.96));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.page-blog-hub .bh-hub-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0%, rgba(0,212,255,0.08) 42%, transparent 64%);
  background-size: 44px 44px, 44px 44px, 100% 100%;
  opacity: 0.66;
  transform: perspective(680px) rotateX(57deg) translateY(56px) scale(1.16);
  transform-origin: 50% 100%;
}

.page-blog-hub .bh-hub-panel::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  pointer-events: none;
}

.page-blog-hub .bh-hub-panel__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.page-blog-hub .bh-hub-panel .bh-hero-badge {
  padding: 0;
  margin-bottom: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--r-accent, #00d4ff);
  letter-spacing: 2.6px;
  box-shadow: none;
}

.page-blog-hub .bh-hub-panel h1 {
  margin: 0 0 11px;
  max-width: 10.5em;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3.35vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.13);
}

.page-blog-hub .bh-hub-panel .bh-hero-lede {
  max-width: 49em;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.58;
}

.page-blog-hub .bh-hub-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-blog-hub .bh-hub-quick a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.065);
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.page-blog-hub .bh-hub-quick a:hover,
.page-blog-hub .bh-hub-quick a:focus-visible,
.page-blog-hub .bh-hub-quick a.is-active {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 255, 0.7);
  background: rgba(0, 212, 255, 0.16);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.12);
}

.page-blog-hub .bh-hub-panel__visual {
  position: relative;
  z-index: 2;
  min-height: 184px;
}

.page-blog-hub .bh-hub-map-card {
  position: absolute;
  inset: 6px 0 0 auto;
  width: min(100%, 440px);
  height: 174px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 62% 42%, rgba(0,212,255,0.18), transparent 34%),
    linear-gradient(135deg, rgba(6, 15, 27, 0.96), rgba(2, 7, 15, 0.96));
  background-size: 31px 31px, 31px 31px, 100% 100%, 100% 100%;
  box-shadow:
    0 16px 42px rgba(0,0,0,0.35),
    inset 0 0 38px rgba(0, 212, 255, 0.07);
  transform: perspective(720px) rotateX(48deg) rotateZ(-6deg) translateY(12px);
  transform-origin: 50% 78%;
}

.page-blog-hub .bh-hub-map-card::before {
  content: "";
  position: absolute;
  inset: 22px -24px 0;
  background:
    linear-gradient(10deg, transparent 48%, rgba(255,255,255,0.11) 49%, rgba(255,255,255,0.11) 51%, transparent 52%),
    linear-gradient(96deg, transparent 49%, rgba(255,255,255,0.09) 50%, transparent 51%),
    linear-gradient(152deg, transparent 48%, rgba(255,255,255,0.08) 49%, rgba(255,255,255,0.08) 51%, transparent 52%);
  opacity: 0.72;
}

.page-blog-hub .bh-hub-map-label {
  position: absolute;
  top: 13px;
  left: 16px;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 999px;
  background: rgba(2, 8, 17, 0.72);
  color: rgba(255,255,255,0.9);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.page-blog-hub .bh-hub-route {
  position: absolute;
  z-index: 2;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff, 0 0 24px rgba(0, 212, 255, 0.72);
}

.page-blog-hub .bh-hub-route--one {
  left: 62px;
  top: 96px;
  width: 174px;
  transform: rotate(-18deg);
}

.page-blog-hub .bh-hub-route--two {
  left: 206px;
  top: 72px;
  width: 150px;
  transform: rotate(10deg);
}

.page-blog-hub .bh-hub-route--three {
  left: 244px;
  top: 91px;
  width: 112px;
  transform: rotate(86deg);
}

.page-blog-hub .bh-hub-node,
.page-blog-hub .bh-hub-car-dot {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255,255,255,0.85);
  border-radius: 999px;
  background: #00d4ff;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.78);
}

.page-blog-hub .bh-hub-node--a { left: 70px; top: 88px; }
.page-blog-hub .bh-hub-node--b { left: 214px; top: 66px; }
.page-blog-hub .bh-hub-node--c { left: 340px; top: 82px; }

.page-blog-hub .bh-hub-car-dot {
  left: 292px;
  top: 112px;
  width: 22px;
  height: 12px;
  border: 0;
  border-radius: 7px 10px 10px 7px;
  background: linear-gradient(90deg, #ff9c2f, #ff5b23);
  box-shadow: 0 0 18px rgba(255, 120, 35, 0.75), 0 0 28px rgba(0,212,255,0.32);
  transform: rotate(12deg);
}

.page-blog-hub .bh-hub-mini-stack {
  position: absolute;
  right: 22px;
  bottom: 2px;
  display: grid;
  gap: 8px;
  width: 200px;
}

.page-blog-hub .bh-hub-mini-stack span {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  background: rgba(3, 10, 20, 0.72);
  color: rgba(255,255,255,0.78);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}

@media (max-width: 1024px) {
  .page-blog-hub .bh-hub-panel {
    grid-template-columns: 1fr;
    padding: 26px 24px;
  }

  .page-blog-hub .bh-hub-panel__visual {
    display: none;
  }

  .page-blog-hub .bh-hub-panel h1 {
    max-width: 12em;
  }
}

@media (max-width: 768px) {
  .page-blog-hub .bh-hub-panel {
    min-height: 0;
    margin: 0 0 14px;
    padding: 18px 16px 16px;
    border-radius: 18px;
  }

  .page-blog-hub .bh-hub-panel h1 {
    margin-bottom: 8px;
    font-size: clamp(1.35rem, 7vw, 1.8rem);
  }

  .page-blog-hub .bh-hub-panel .bh-hero-badge {
    margin-bottom: 8px;
    font-size: 0.58rem;
    letter-spacing: 1.8px;
  }

  .page-blog-hub .bh-hub-panel .bh-hero-lede {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .page-blog-hub .bh-hub-quick {
    gap: 6px;
    margin-top: 13px;
  }

  .page-blog-hub .bh-hub-quick a {
    min-height: 30px;
    padding: 7px 9px;
    font-size: 0.68rem;
  }
}

/* Skill Assessment Lab featured tool card */
.bh-interactive--skill {
  --bh-interactive-image: url('/assets/images/blog/interactive/driving-skill-assessment-lab-cover.webp');
}

@media (min-width: 769px) {
  .page-blog-hub .bh-interactive--skill {
    border-color: rgba(255, 159, 26, 0.20);
    background:
      radial-gradient(circle at 84% 20%, rgba(255, 159, 26, 0.16), transparent 32%),
      linear-gradient(135deg, rgba(20, 9, 28, 0.82), rgba(7, 9, 17, 0.96));
  }

  .page-blog-hub .bh-interactive--skill .bh-preview-visual {
    border-color: rgba(255, 159, 26, 0.20);
    box-shadow: 0 0 34px rgba(255, 159, 26, 0.10);
  }
}

.bh-featured-tool-label--orange {
  color: #ffb347;
  border-color: rgba(255, 159, 26, 0.34);
  background: rgba(255, 159, 26, 0.13);
}

.bh-btn-outline--orange {
  border-color: rgba(255, 159, 26, 0.52);
  color: #ffbd62;
  background: rgba(255, 159, 26, 0.06);
}

.bh-btn-outline--orange:hover {
  color: #100700;
  border-color: rgba(255, 198, 92, 0.85);
  background: linear-gradient(135deg, #ffd36f, #ff9f1a 55%, #ff6a1a);
}

@media (max-width: 768px) {
  .page-blog-hub .bh-interactive--skill::after {
    background-size: cover;
    background-position: center center;
    opacity: 0.92;
  }

  .page-blog-hub .bh-interactive--skill::before {
    background:
      linear-gradient(90deg,
        rgba(7, 7, 13, 1) 0%,
        rgba(7, 7, 13, 0.98) 43%,
        rgba(13, 8, 18, 0.84) 59%,
        rgba(13, 8, 18, 0.44) 77%,
        rgba(13, 8, 18, 0.08) 100%),
      radial-gradient(circle at 84% 46%, rgba(255, 159, 26, 0.16), transparent 28%);
  }

  .page-blog-hub .bh-interactive--skill .bh-interactive-copy {
    max-width: min(62%, 260px);
  }
}

/* ============================================================
   Driving Hub rename + intro polish
   Source-of-truth iteration: keep current layout, only strengthen
   the left intro and group the three featured tools.
   ============================================================ */
.page-blog-hub .bh-hub-intro-card {
  position: relative;
  isolation: isolate;
  margin: 0 0 18px;
  padding: 16px 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 217, 255, 0.13), transparent 44%),
    linear-gradient(145deg, rgba(7, 17, 28, 0.92), rgba(4, 9, 17, 0.76));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-blog-hub .bh-hub-intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(0, 217, 255, 0.11), transparent 36%, rgba(255, 255, 255, 0.025));
  pointer-events: none;
}

.page-blog-hub .bh-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.08);
  color: #37e7ff;
  font-family: "Poppins", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.page-blog-hub .bh-hub-intro-card .bh-hub-title {
  margin: 0 0 9px;
  max-width: 14rem;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.23rem, 1.8vw, 1.55rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-blog-hub .bh-hub-intro-card .bh-hub-intro {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-blog-hub .bh-road-test-lab-intro {
  position: relative;
  margin: 0 0 14px;
  padding: 15px 18px 16px;
  border: 1px solid rgba(0, 217, 255, 0.18);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(8, 17, 28, 0.7), rgba(5, 9, 16, 0.88));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.page-blog-hub .bh-road-test-lab-kicker {
  display: inline-flex;
  margin-bottom: 7px;
  color: #28e4ff;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-blog-hub .bh-road-test-lab-intro h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.18rem, 1.9vw, 1.52rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.page-blog-hub .bh-road-test-lab-intro p {
  max-width: 58rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .page-blog-hub .bh-hub-intro-card .bh-hub-title {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .page-blog-hub .bh-hub-intro-card {
    margin-bottom: 14px;
    padding: 14px 14px 15px;
    border-radius: 14px;
  }

  .page-blog-hub .bh-road-test-lab-intro {
    padding: 14px 15px;
    border-radius: 15px;
  }
}


/* ============================================================
   Driving Hub rebuild — v1.1
   Adds: main-column H1 header band, hub sections sidebar nav,
   inline contextual CTA, road test lab section wrapper, ghost btn.
   Lowered desktop breakpoint to 1024px in earlier rules.
   ============================================================ */

/* --- New sidebar section labels --- */
.page-blog-hub .bh-side-section-label {
  margin: 22px 0 11px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.page-blog-hub .bh-side-section-label:first-of-type {
  margin-top: 4px;
}

/* --- Sidebar Hub Sections nav --- */
.page-blog-hub .bh-hub-sections {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 4px;
}

.page-blog-hub .bh-hub-section-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(8, 12, 22, 0.65);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s, padding 0.18s;
}

.page-blog-hub .bh-hub-section-link::after {
  content: "›";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 1rem;
  font-weight: 800;
  color: rgba(0, 212, 255, 0.55);
  flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}

.page-blog-hub .bh-hub-section-link:hover,
.page-blog-hub .bh-hub-section-link:focus-visible {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(2px);
  outline: none;
}

.page-blog-hub .bh-hub-section-link:hover::after,
.page-blog-hub .bh-hub-section-link:focus-visible::after {
  color: rgba(0, 212, 255, 0.95);
  transform: translateX(2px);
}

.page-blog-hub .bh-hub-section-link.is-active,
.page-blog-hub .bh-hub-section-link[aria-current="true"],
.page-blog-hub .bh-hub-section-link[aria-current="page"] {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

.page-blog-hub .bh-hub-section-link.is-active .bh-hub-section-icon,
.page-blog-hub .bh-hub-section-link[aria-current="true"] .bh-hub-section-icon,
.page-blog-hub .bh-hub-section-link[aria-current="page"] .bh-hub-section-icon {
  background: rgba(0, 212, 255, 0.22);
  color: #fff;
}

.page-blog-hub .bh-hub-section-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-blog-hub .bh-hub-section-meta {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
  margin-left: auto;
  margin-right: 6px;
}

/* --- Main-column Driving Hub header band (the H1 lives here) --- */
.page-blog-hub .bh-driving-hub-header {
  position: relative;
  margin: 0 0 26px;
  padding: 28px 30px 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 14%, rgba(0, 212, 255, 0.14), transparent 38%),
    radial-gradient(circle at 6% 100%, rgba(0, 153, 204, 0.07), transparent 42%),
    linear-gradient(135deg, rgba(7, 13, 24, 0.96), rgba(3, 7, 14, 0.94));
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.page-blog-hub .bh-driving-hub-header::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.42), transparent);
  pointer-events: none;
}

.page-blog-hub .bh-driving-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 217, 255, 0.32);
  border-radius: 999px;
  background: rgba(0, 217, 255, 0.08);
  color: #37e7ff;
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.page-blog-hub .bh-driving-hub-h1 {
  margin: 16px 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(0, 212, 255, 0.16);
}

.page-blog-hub .bh-driving-hub-tagline {
  margin: 0 0 14px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.88);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 1.75vw, 1.28rem);
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.page-blog-hub .bh-driving-hub-lede {
  margin: 0 0 20px;
  max-width: 44em;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.96rem;
  line-height: 1.6;
}

.page-blog-hub .bh-driving-hub-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-blog-hub .bh-quicknav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.62);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.page-blog-hub .bh-quicknav-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: rgba(0, 212, 255, 0.85);
}

.page-blog-hub .bh-quicknav-chip:hover,
.page-blog-hub .bh-quicknav-chip:focus-visible {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.52);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.page-blog-hub .bh-quicknav-chip--cta {
  border-color: rgba(0, 212, 255, 0.58);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(0, 168, 212, 0.18));
  color: #fff;
  font-weight: 800;
}

.page-blog-hub .bh-quicknav-chip--cta:hover,
.page-blog-hub .bh-quicknav-chip--cta:focus-visible {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.35), rgba(0, 168, 212, 0.3));
  border-color: rgba(0, 212, 255, 0.92);
}

.page-blog-hub .bh-quicknav-chip-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}

/* --- Road Test Lab section wrapper + tool grid --- */
.page-blog-hub .bh-road-test-lab {
  margin: 0 0 26px;
}

.page-blog-hub .bh-road-test-lab-intro {
  margin: 0 0 16px;
  padding: 18px 22px 19px;
  border-radius: 18px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  background:
    radial-gradient(circle at 92% 50%, rgba(0, 212, 255, 0.08), transparent 50%),
    linear-gradient(135deg, rgba(8, 17, 28, 0.78), rgba(5, 9, 16, 0.92));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.page-blog-hub .bh-road-test-lab-intro h2 {
  margin: 6px 0 6px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.32rem, 2.1vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

.page-blog-hub .bh-tool-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-blog-hub .bh-tool-grid .bh-interactive {
  margin-bottom: 0;
}

/* --- Inline contextual CTA between tools and library --- */
.page-blog-hub .bh-inline-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px 32px;
  align-items: center;
  margin: 0 0 28px;
  padding: 22px 26px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 50%, rgba(0, 212, 255, 0.12), transparent 52%),
    linear-gradient(135deg, rgba(9, 17, 28, 0.92), rgba(4, 8, 16, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.page-blog-hub .bh-inline-cta::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
  pointer-events: none;
}

.page-blog-hub .bh-inline-cta-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #37e7ff;
  font-family: "Poppins", sans-serif;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.page-blog-hub .bh-inline-cta-heading {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.18rem, 1.95vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff;
}

.page-blog-hub .bh-inline-cta-text {
  margin: 0;
  max-width: 40em;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
  line-height: 1.58;
}

.page-blog-hub .bh-inline-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

.page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.74rem;
  letter-spacing: 1.3px;
}

.page-blog-hub .bh-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  transition: color 0.18s, background 0.18s;
}

.page-blog-hub .bh-btn-ghost:hover,
.page-blog-hub .bh-btn-ghost:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

/* --- Tablet/laptop adjustments for the new band (1024px and below) --- */
@media (max-width: 1024px) {
  .page-blog-hub .bh-driving-hub-header {
    padding: 24px 24px 22px;
    border-radius: 20px;
  }

  .page-blog-hub .bh-driving-hub-h1 {
    font-size: clamp(2rem, 5.4vw, 2.8rem);
  }

  .page-blog-hub .bh-inline-cta {
    grid-template-columns: 1fr;
    padding: 22px 22px;
  }

  .page-blog-hub .bh-inline-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
    width: auto;
    flex: 1 1 220px;
    min-width: 220px;
  }
}

/* --- Mobile (≤768px): compact header, stacked CTA, inline tags --- */
@media (max-width: 768px) {
  .page-blog-hub .bh-driving-hub-header {
    margin: 0 0 16px;
    padding: 20px 18px 18px;
    border-radius: 18px;
  }

  .page-blog-hub .bh-driving-hub-kicker {
    padding: 5px 10px;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .page-blog-hub .bh-driving-hub-h1 {
    margin: 11px 0 7px;
    font-size: clamp(1.7rem, 8.2vw, 2.2rem);
    letter-spacing: -0.045em;
  }

  .page-blog-hub .bh-driving-hub-tagline {
    font-size: clamp(0.95rem, 4.2vw, 1.08rem);
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .page-blog-hub .bh-driving-hub-lede {
    margin-bottom: 14px;
    font-size: clamp(0.82rem, 3.4vw, 0.92rem);
    line-height: 1.5;
  }

  .page-blog-hub .bh-driving-hub-quicknav {
    gap: 6px;
  }

  .page-blog-hub .bh-quicknav-chip {
    padding: 8px 11px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .page-blog-hub .bh-quicknav-chip-icon {
    width: 13px;
    height: 13px;
  }

  .page-blog-hub .bh-road-test-lab {
    margin-bottom: 18px;
  }

  .page-blog-hub .bh-road-test-lab-intro {
    margin-bottom: 14px;
    padding: 15px 16px 14px;
    border-radius: 15px;
  }

  .page-blog-hub .bh-road-test-lab-intro h2 {
    margin: 4px 0 5px;
    font-size: clamp(1.2rem, 5.4vw, 1.5rem);
  }

  .page-blog-hub .bh-tool-grid {
    gap: 12px;
  }

  .page-blog-hub .bh-inline-cta {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 18px;
    padding: 18px 18px 18px;
    border-radius: 16px;
  }

  .page-blog-hub .bh-inline-cta-heading {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
  }

  .page-blog-hub .bh-inline-cta-text {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .page-blog-hub .bh-inline-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
    width: 100%;
    padding: 12px 16px;
  }

  /* Hide sidebar Hub Sections on mobile (drawer carries the same nav). */
  .page-blog-hub .bh-side-section-label,
  .page-blog-hub .bh-hub-sections {
    display: none;
  }
}

@media (max-width: 380px) {
  .page-blog-hub .bh-driving-hub-header {
    padding: 16px 14px 14px;
  }

  .page-blog-hub .bh-driving-hub-h1 {
    font-size: clamp(1.55rem, 7.8vw, 1.95rem);
  }

  .page-blog-hub .bh-driving-hub-lede {
    font-size: 0.8rem;
  }
}


/* ============================================================
   FULL REDESIGN — v2.0
   H1 band with mountain image, sidebar icons + NEW badge,
   3-column tool grid, polished inline CTA with trust bullets,
   library section header with desktop filter row + search.
   ============================================================ */

/* --- H1 band: now 2-column grid with mountain image on the right --- */
.page-blog-hub .bh-driving-hub-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 0;
  align-items: stretch;
  margin: 0 0 26px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 6% 100%, rgba(0, 153, 204, 0.07), transparent 42%),
    linear-gradient(135deg, rgba(7, 13, 24, 0.96), rgba(3, 7, 14, 0.94));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.page-blog-hub .bh-driving-hub-header-content {
  position: relative;
  z-index: 2;
  padding: 32px 30px 28px;
}

.page-blog-hub .bh-driving-hub-header-visual {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.page-blog-hub .bh-driving-hub-header-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.page-blog-hub .bh-driving-hub-header-visual-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 13, 24, 1) 0%, rgba(7, 13, 24, 0.55) 22%, rgba(7, 13, 24, 0.06) 60%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(7, 13, 24, 0.45) 100%);
}

/* Kicker, H1, tagline, lede — slightly tighter to make room for image */
.page-blog-hub .bh-driving-hub-header .bh-driving-hub-kicker {
  margin-bottom: 14px;
}

.page-blog-hub .bh-driving-hub-h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.page-blog-hub .bh-driving-hub-tagline {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 1.85vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--r-accent, #00d4ff);
}

.page-blog-hub .bh-driving-hub-lede {
  max-width: 38em;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.62;
}

/* 5-chip quicknav with icons */
.page-blog-hub .bh-driving-hub-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-blog-hub .bh-quicknav-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 14, 24, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.page-blog-hub .bh-quicknav-chip:hover,
.page-blog-hub .bh-quicknav-chip:focus-visible {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.page-blog-hub .bh-quicknav-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.14);
  color: var(--r-accent, #00d4ff);
  flex-shrink: 0;
}

/* --- Sidebar redesign: Home pill + icons + NEW badge --- */
.page-blog-hub .bh-sidebar-home {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin: 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(8, 12, 22, 0.65);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: filter 0.18s, transform 0.18s, background 0.18s, border-color 0.18s;
}

.page-blog-hub .bh-sidebar-home:hover {
  color: #fff;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Lit only when the Driving Hub home is the current page (the /blog/ index) */
.page-blog-hub .bh-sidebar-home[aria-current="page"] {
  border-color: rgba(0, 212, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.16), rgba(0, 168, 212, 0.1));
}

.page-blog-hub .bh-sidebar-home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.page-blog-hub .bh-sidebar-home[aria-current="page"] .bh-sidebar-home-icon {
  background: rgba(0, 212, 255, 0.24);
  color: #fff;
}

/* Override existing hub-section-link to include icons and remove the old chevron */
.page-blog-hub .bh-hub-section-link {
  padding: 10px 12px 10px 12px;
}

.page-blog-hub .bh-hub-section-link::after {
  display: none;
}

.page-blog-hub .bh-hub-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--r-accent, #00d4ff);
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}

.page-blog-hub .bh-hub-section-link:hover .bh-hub-section-icon,
.page-blog-hub .bh-hub-section-link:focus-visible .bh-hub-section-icon {
  background: rgba(0, 212, 255, 0.22);
  color: #fff;
}

.page-blog-hub .bh-hub-section-name {
  flex: 1 1 auto;
  min-width: 0;
}

.page-blog-hub .bh-hub-section-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--r-accent, #00d4ff);
  color: #03101a;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  flex-shrink: 0;
  margin-left: auto;
}

/* Sidebar search now appears below the Hub Sections — restyle a touch */
.page-blog-hub .bh-sidebar-left .bh-search-side {
  margin-top: 22px;
  margin-bottom: 18px;
}

/* --- 3-column tool grid (the biggest layout change) --- */
.page-blog-hub .bh-tool-grid--cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Override the legacy 2-col layout for tool cards when in the 3-col grid */
.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 20px 20px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(9, 14, 24, 0.92), rgba(5, 9, 16, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-featured-tool-label {
  margin: 0 0 6px;
  align-self: flex-start;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive h3 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #fff;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive > p {
  margin: 0 0 4px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
  min-height: 0;
  margin: 8px 0 14px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-pulse {
  width: 44px;
  height: 44px;
  left: 70%;
  top: 50%;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-btn-outline-arrow {
  display: inline-flex;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  margin-left: 2px;
}

/* Orange accent on Readiness Check stays */
.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive--skill {
  border-color: rgba(255, 159, 26, 0.22);
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 159, 26, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(20, 9, 28, 0.78), rgba(7, 9, 17, 0.96));
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive--skill .bh-preview-visual {
  border-color: rgba(255, 159, 26, 0.2);
}

/* --- Polished inline CTA: icon + copy + actions, with trust bullets --- */
.page-blog-hub .bh-inline-cta {
  grid-template-columns: 56px minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px 26px;
  align-items: center;
}

.page-blog-hub .bh-inline-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.14);
  border: 1px solid rgba(0, 212, 255, 0.32);
  color: var(--r-accent, #00d4ff);
  flex-shrink: 0;
}

.page-blog-hub .bh-inline-cta-trust {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.page-blog-hub .bh-inline-cta-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-blog-hub .bh-trust-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.2);
  color: var(--r-accent, #00d4ff);
  flex-shrink: 0;
}

.page-blog-hub .bh-inline-cta .bh-btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-blog-hub .bh-btn-arrow {
  display: inline-flex;
  font-weight: 850;
  font-size: 0.95em;
  line-height: 1;
}

/* --- Library section header redesign --- */
.page-blog-hub .bh-articles-header {
  margin: 8px 0 18px;
}

.page-blog-hub .bh-articles-kicker {
  display: inline-flex;
  margin: 0 0 10px;
  color: var(--r-accent, #00d4ff);
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.page-blog-hub .bh-articles-h2 {
  margin: 0 0 8px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #fff;
}

.page-blog-hub .bh-articles-lede {
  max-width: 50em;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Hide the legacy .bh-articles-head h2 / View all link wrapper if present on mobile */
.page-blog-hub .bh-articles-header + .bh-articles-head {
  display: none;
}

/* --- Library controls: filters + inline search --- */
.page-blog-hub .bh-library-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(8, 12, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-blog-hub .bh-library-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.page-blog-hub .bh-library-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.page-blog-hub .bh-library-filter:hover,
.page-blog-hub .bh-library-filter:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.page-blog-hub .bh-library-filter.is-active,
.page-blog-hub .bh-library-filter[aria-current="true"] {
  color: #fff;
  background: rgba(0, 212, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.32);
}

.page-blog-hub .bh-library-filter-menu {
  position: relative;
}

.page-blog-hub .bh-library-filter-menu .bh-chip-chevron {
  display: inline-flex;
  align-items: center;
  font-size: 0.78em;
  opacity: 0.7;
  transition: transform 0.18s;
}

.page-blog-hub .bh-library-filter-menu.is-open .bh-chip-chevron,
.page-blog-hub .bh-library-filter-trigger[aria-expanded="true"] .bh-chip-chevron {
  transform: rotate(180deg);
}

.page-blog-hub .bh-library-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 180px;
  padding: 6px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.98), rgba(4, 8, 16, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 212, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}

.page-blog-hub .bh-library-filter-dropdown--right {
  left: auto;
  right: 0;
}

.page-blog-hub .bh-library-filter-menu.is-open .bh-library-filter-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.page-blog-hub .bh-library-filter-dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
}

.page-blog-hub .bh-library-filter-dropdown a:hover,
.page-blog-hub .bh-library-filter-dropdown a:focus-visible {
  color: #03101a;
  background: var(--r-accent, #00d4ff);
  outline: none;
}

.page-blog-hub .bh-library-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 18, 0.88);
  flex: 0 0 auto;
  min-width: 220px;
  max-width: 280px;
}

.page-blog-hub .bh-library-search svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.page-blog-hub .bh-library-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  outline: none;
}

.page-blog-hub .bh-library-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive: tablet (≤1024px) --- */
@media (max-width: 1024px) {
  .page-blog-hub .bh-driving-hub-header {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .page-blog-hub .bh-driving-hub-header-content {
    padding: 26px 24px 24px;
  }

  .page-blog-hub .bh-driving-hub-header-visual {
    display: none;
  }

  .page-blog-hub .bh-driving-hub-h1 {
    font-size: clamp(2rem, 5.4vw, 2.8rem);
  }

  .page-blog-hub .bh-tool-grid--cols-3 {
    grid-template-columns: 1fr;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
    flex-direction: row;
    align-items: stretch;
    gap: 18px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
    flex: 0 0 38%;
    margin: 0;
    aspect-ratio: 4 / 3;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-featured-tool-label,
  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive h3,
  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive > p,
  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-btn-outline {
    order: 0;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
    display: grid;
    grid-template-columns: 1fr 38%;
    grid-template-rows: auto auto 1fr auto;
    gap: 6px 16px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-featured-tool-label {
    grid-column: 1;
    grid-row: 1;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive h3 {
    grid-column: 1;
    grid-row: 2;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive > p {
    grid-column: 1;
    grid-row: 3;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-btn-outline {
    grid-column: 1;
    grid-row: 4;
    align-self: end;
    width: auto;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .page-blog-hub .bh-inline-cta {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .page-blog-hub .bh-inline-cta-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .page-blog-hub .bh-inline-cta-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .page-blog-hub .bh-inline-cta-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
  }

  .page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
    flex: 1 1 240px;
    min-width: 240px;
  }
}

/* --- Mobile: stack everything, simplify --- */
@media (max-width: 768px) {
  .page-blog-hub .bh-driving-hub-header {
    border-radius: 18px;
  }

  .page-blog-hub .bh-driving-hub-header-content {
    padding: 22px 18px 20px;
  }

  .page-blog-hub .bh-driving-hub-tagline {
    font-size: clamp(1rem, 4.5vw, 1.18rem);
  }

  .page-blog-hub .bh-quicknav-chip {
    padding: 9px 12px;
    gap: 8px;
    font-size: 0.78rem;
  }

  .page-blog-hub .bh-quicknav-chip-icon {
    width: 16px;
    height: 16px;
    border-radius: 5px;
  }

  /* Tools stack vertically; reuse the existing mobile compact card pattern */
  .page-blog-hub .bh-tool-grid--cols-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38%;
    grid-template-rows: auto auto 1fr auto;
    gap: 4px 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive h3 {
    font-size: clamp(1rem, 4.6vw, 1.18rem);
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive > p {
    font-size: 0.82rem;
    line-height: 1.46;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
    margin: 0;
    aspect-ratio: 1 / 1;
    border-radius: 11px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-pulse {
    width: 32px;
    height: 32px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-btn-outline {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  /* Inline CTA collapses to a single column with stacked icon, copy, actions */
  .page-blog-hub .bh-inline-cta {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 18px;
    border-radius: 16px;
  }

  .page-blog-hub .bh-inline-cta-icon {
    width: 40px;
    height: 40px;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .page-blog-hub .bh-inline-cta-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .page-blog-hub .bh-inline-cta-actions {
    grid-column: 1;
    grid-row: 3;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
  }

  .page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
  }

  .page-blog-hub .bh-inline-cta-trust {
    margin-top: 10px;
    gap: 5px 14px;
  }

  .page-blog-hub .bh-inline-cta-trust li {
    font-size: 0.74rem;
  }

  /* Library section header — center-align on mobile to feel intentional */
  .page-blog-hub .bh-articles-header {
    text-align: left;
    margin-bottom: 14px;
  }

  .page-blog-hub .bh-articles-h2 {
    font-size: clamp(1.35rem, 5.8vw, 1.7rem);
  }

  .page-blog-hub .bh-articles-lede {
    font-size: 0.86rem;
  }

  /* Desktop filter row hidden on mobile — the existing .bh-mobile-resource-nav handles small screens */
  .page-blog-hub .bh-library-controls {
    display: none;
  }
}

/* Show the desktop filter row only above mobile */
@media (min-width: 769px) {
  .page-blog-hub .bh-mobile-resource-nav {
    display: none !important;
  }
}

/* Don't double up the legacy bh-articles-head H2 — we use bh-articles-header now */
.page-blog-hub .bh-articles-header ~ .bh-articles-head {
  display: none !important;
}

/* Reduce mobile sidebar home redundancy — drawer carries identity */
@media (max-width: 768px) {
  .page-blog-hub .bh-sidebar-home {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Driving Hub cleanup pass — reduce duplication and visual clutter
   20260522-hub-clean1
   -------------------------------------------------------------------------- */

/* Compact hero: H1 + promise only. No duplicate navigation chips here. */
.page-blog-hub .bh-driving-hub-header {
  display: block;
  margin-bottom: 18px;
  padding: 22px 24px 21px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 212, 255, 0.10), transparent 36%),
    linear-gradient(135deg, rgba(7, 13, 24, 0.94), rgba(4, 8, 15, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-blog-hub .bh-driving-hub-header-content {
  padding: 0;
  max-width: 760px;
}

.page-blog-hub .bh-driving-hub-kicker {
  padding: 5px 10px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.page-blog-hub .bh-driving-hub-h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1;
  text-shadow: none;
}

.page-blog-hub .bh-driving-hub-tagline {
  margin: 0 0 10px;
  max-width: 34em;
  color: rgba(0, 212, 255, 0.96);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.35;
}

.page-blog-hub .bh-driving-hub-lede {
  max-width: 46em;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Keep the side rail as navigation, not a second library/filter area. */
.page-blog-hub .bh-sidebar-left {
  gap: 0;
}

.page-blog-hub .bh-sidebar-home {
  margin-bottom: 16px;
  padding: 11px 14px;
}

.page-blog-hub .bh-side-section-label {
  margin: 0 0 9px;
}

.page-blog-hub .bh-hub-sections {
  gap: 7px;
  margin-bottom: 18px;
}

.page-blog-hub .bh-hub-section-link {
  min-height: 0;
  padding: 10px 11px;
  border-radius: 11px;
}

.page-blog-hub .bh-hub-section-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.page-blog-hub .bh-hub-section-name {
  font-size: 0.83rem;
}

.page-blog-hub .bh-sidebar-cta {
  margin-top: 18px;
  padding: 16px 15px;
}

.page-blog-hub .bh-sidebar-cta h3 {
  font-size: 0.98rem;
}

.page-blog-hub .bh-sidebar-cta p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Road Test Lab should not be another large hero. Make it a clean section intro. */
.page-blog-hub .bh-road-test-lab {
  margin-bottom: 18px;
}

.page-blog-hub .bh-road-test-lab-intro {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
}

.page-blog-hub .bh-road-test-lab-intro h2 {
  margin: 0 0 5px;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
}

.page-blog-hub .bh-road-test-lab-intro p {
  max-width: 48em;
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.page-blog-hub .bh-tool-grid--cols-3 {
  gap: 12px;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
  padding: 17px;
  border-radius: 16px;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
  margin: 6px 0 12px;
  aspect-ratio: 16 / 9;
}

/* Text-heavy preview images should not have their labels chopped off. */
.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual img {
  object-fit: contain;
  object-position: center;
  background: rgba(3, 8, 14, 0.78);
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive--map .bh-preview-visual img,
.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive--skill .bh-preview-visual img {
  object-fit: contain;
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive h3 {
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.page-blog-hub .bh-tool-grid--cols-3 .bh-interactive > p {
  font-size: 0.84rem;
  line-height: 1.48;
}

/* CTA: useful punctuation, not a second hero. */
.page-blog-hub .bh-inline-cta {
  grid-template-columns: 44px minmax(0, 1fr) minmax(190px, 240px);
  gap: 14px 18px;
  margin: 0 0 22px;
  padding: 17px 20px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.page-blog-hub .bh-inline-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.page-blog-hub .bh-inline-cta-kicker {
  display: none;
}

.page-blog-hub .bh-inline-cta-heading {
  margin-bottom: 5px;
  font-size: clamp(1.05rem, 1.65vw, 1.28rem);
}

.page-blog-hub .bh-inline-cta-text {
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
  min-height: 0;
  padding: 11px 14px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.page-blog-hub .bh-btn-ghost {
  padding: 6px 10px;
  font-size: 0.72rem;
}

/* Tighten the transition into the resource library. */
.page-blog-hub .bh-articles-section {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .page-blog-hub .bh-driving-hub-header {
    padding: 20px 20px 19px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
    grid-template-columns: minmax(0, 1fr) 34%;
    gap: 6px 14px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-btn-outline {
    width: fit-content;
    min-width: 0;
    max-width: 100%;
  }

  .page-blog-hub .bh-inline-cta {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px 14px;
  }

  .page-blog-hub .bh-inline-cta-actions {
    gap: 8px;
  }

  .page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
  }
}

@media (max-width: 768px) {
  .page-blog-hub .bh-driving-hub-header {
    margin-bottom: 14px;
    padding: 18px 16px 17px;
    border-radius: 16px;
  }

  .page-blog-hub .bh-driving-hub-h1 {
    margin-top: 10px;
    font-size: clamp(1.78rem, 8vw, 2.25rem);
  }

  .page-blog-hub .bh-driving-hub-lede {
    font-size: 0.86rem;
  }

  .page-blog-hub .bh-road-test-lab-intro {
    padding-bottom: 10px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
    grid-template-columns: minmax(0, 1fr) 34%;
    padding: 14px;
    gap: 4px 10px;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
    aspect-ratio: 1 / 1;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive h3 {
    font-size: clamp(0.98rem, 4.4vw, 1.1rem);
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive > p {
    font-size: 0.78rem;
    line-height: 1.4;
    -webkit-line-clamp: 2;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-btn-outline {
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    padding: 8px 10px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .page-blog-hub .bh-inline-cta {
    padding: 14px;
    gap: 10px;
  }

  .page-blog-hub .bh-inline-cta-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0;
  }

  .page-blog-hub .bh-inline-cta-heading {
    font-size: 1.05rem;
  }

  .page-blog-hub .bh-inline-cta-text {
    font-size: 0.82rem;
  }

  .page-blog-hub .bh-inline-cta-actions {
    align-items: flex-start;
    gap: 6px;
  }

  .page-blog-hub .bh-inline-cta-actions .bh-btn-cyan {
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 10px 12px;
    font-size: 0.64rem;
    letter-spacing: 0.05em;
    white-space: normal;
  }

  .page-blog-hub .bh-btn-ghost {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive {
    grid-template-columns: minmax(0, 1fr) 32%;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-featured-tool-label {
    font-size: 0.58rem;
  }

  .page-blog-hub .bh-tool-grid--cols-3 .bh-interactive .bh-preview-visual {
    border-radius: 9px;
  }
}

/* =========================================================================
   Driving Hub tools — homepage authority-card treatment
   Copying the proven homepage "Built for Chilliwack Drivers" card language.
   Scoped only to the Driving Hub tools section.
   ========================================================================= */

.page-blog-hub .bh-road-test-lab--authority {
  position: relative;
  margin-top: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.page-blog-hub .bh-authority-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.page-blog-hub .bh-authority-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.14);
  background: rgba(8, 12, 22, 0.98);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.40),
    0 20px 60px rgba(0, 0, 0, 0.30),
    0 0 30px rgba(0, 212, 255, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.35s ease;
}

.page-blog-hub .bh-authority-tool-card--skill {
  border-color: rgba(255, 153, 51, 0.18);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.40),
    0 20px 60px rgba(0, 0, 0, 0.30),
    0 0 30px rgba(255, 153, 51, 0.04),
    inset 0 1px 0 rgba(255, 153, 51, 0.06);
}

.page-blog-hub .bh-authority-tool-media {
  position: relative;
  width: 100%;
  height: 218px;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: -1px;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 212, 255, 0.08), transparent 48%),
    rgba(5, 10, 18, 0.96);
}

.page-blog-hub .bh-authority-tool-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.82;
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
}

.page-blog-hub .bh-authority-tool-card--sheet .bh-authority-tool-media img {
  object-position: center 50%;
}

.page-blog-hub .bh-authority-tool-card--map .bh-authority-tool-media img,
.page-blog-hub .bh-authority-tool-card--skill .bh-authority-tool-media img {
  object-position: center center;
}

.page-blog-hub .bh-authority-tool-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 24%, rgba(0, 212, 255, 0.10), transparent 32%),
    linear-gradient(to bottom,
      rgba(3, 6, 13, 0.04) 0%,
      rgba(3, 6, 13, 0.10) 45%,
      rgba(8, 12, 22, 0.82) 88%,
      rgba(8, 12, 22, 1) 100%);
}

.page-blog-hub .bh-authority-tool-card--skill .bh-authority-tool-media::after {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 153, 51, 0.12), transparent 34%),
    linear-gradient(to bottom,
      rgba(3, 6, 13, 0.04) 0%,
      rgba(3, 6, 13, 0.16) 48%,
      rgba(12, 10, 12, 0.84) 88%,
      rgba(8, 12, 22, 1) 100%);
}

.page-blog-hub .bh-authority-tool-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
  padding: 24px 26px 28px;
  background: rgba(8, 12, 22, 1);
}

.page-blog-hub .bh-authority-tool-tag {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-blog-hub .bh-authority-tool-tag--cyan {
  color: var(--r-accent, #00d4ff);
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.page-blog-hub .bh-authority-tool-tag--orange {
  color: #ffb24a;
  background: rgba(255, 153, 51, 0.10);
  border: 1px solid rgba(255, 153, 51, 0.22);
}

.page-blog-hub .bh-authority-tool-title {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.05vw, 25px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.page-blog-hub .bh-authority-tool-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14.5px;
  line-height: 1.7;
}

.page-blog-hub .bh-authority-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--r-accent, #00d4ff);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.page-blog-hub .bh-authority-tool-link--orange {
  color: #ff9d2e;
}

@media (hover: hover) and (pointer: fine) {
  .page-blog-hub .bh-authority-tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.26);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.45),
      0 30px 80px rgba(0, 0, 0, 0.35),
      0 0 50px rgba(0, 212, 255, 0.06);
  }

  .page-blog-hub .bh-authority-tool-card--skill:hover {
    border-color: rgba(255, 153, 51, 0.36);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.45),
      0 30px 80px rgba(0, 0, 0, 0.35),
      0 0 50px rgba(255, 153, 51, 0.08);
  }

  .page-blog-hub .bh-authority-tool-card:hover .bh-authority-tool-media img {
    opacity: 0.9;
    transform: scale(1.045);
  }

  .page-blog-hub .bh-authority-tool-link:hover {
    transform: translateX(3px);
    color: #7df7ff;
  }

  .page-blog-hub .bh-authority-tool-link--orange:hover {
    color: #ffc46b;
  }
}

@media (max-width: 1180px) {
  .page-blog-hub .bh-authority-tools-grid {
    gap: 18px;
  }

  .page-blog-hub .bh-authority-tool-media {
    height: 198px;
  }

  .page-blog-hub .bh-authority-tool-content {
    padding: 22px 22px 26px;
  }
}

@media (max-width: 1024px) {
  .page-blog-hub .bh-road-test-lab--authority {
    margin-top: 42px;
  }

  .page-blog-hub .bh-authority-tools-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .page-blog-hub .bh-authority-tool-media {
    height: 230px;
  }
}

@media (max-width: 680px) {
  .page-blog-hub .bh-road-test-lab--authority {
    margin-top: 34px;
  }

  .page-blog-hub .bh-authority-tool-card {
    border-radius: 18px;
  }

  .page-blog-hub .bh-authority-tool-media {
    height: 205px;
  }

  .page-blog-hub .bh-authority-tool-card--sheet .bh-authority-tool-media {
    height: 220px;
  }

  .page-blog-hub .bh-authority-tool-content {
    padding: 20px 20px 24px;
  }

  .page-blog-hub .bh-authority-tool-title {
    font-size: 20px;
  }

  .page-blog-hub .bh-authority-tool-text {
    font-size: 13.5px;
  }
}


/* v3.5 — tool card image fit cleanup
   Keep generated preview artwork fully readable: no horizontal cropping,
   16:9 media ratio, no aggressive zoom on hover. */
.page-blog-hub .bh-authority-tool-media {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 212, 255, 0.08), transparent 48%),
    linear-gradient(135deg, rgba(6, 15, 25, 0.96), rgba(3, 6, 13, 0.98));
}

.page-blog-hub .bh-authority-tool-media img {
  object-fit: contain;
  object-position: center center;
  opacity: 0.88;
  transform: none;
}

.page-blog-hub .bh-authority-tool-card--sheet .bh-authority-tool-media img,
.page-blog-hub .bh-authority-tool-card--map .bh-authority-tool-media img,
.page-blog-hub .bh-authority-tool-card--skill .bh-authority-tool-media img {
  object-fit: contain;
  object-position: center center;
}

.page-blog-hub .bh-authority-tool-media::after {
  background:
    linear-gradient(to bottom,
      rgba(3, 6, 13, 0.00) 0%,
      rgba(3, 6, 13, 0.04) 52%,
      rgba(8, 12, 22, 0.72) 92%,
      rgba(8, 12, 22, 1) 100%);
}

.page-blog-hub .bh-authority-tool-card--skill .bh-authority-tool-media::after {
  background:
    linear-gradient(to bottom,
      rgba(3, 6, 13, 0.00) 0%,
      rgba(3, 6, 13, 0.05) 52%,
      rgba(12, 10, 12, 0.72) 92%,
      rgba(8, 12, 22, 1) 100%);
}

@media (hover: hover) and (pointer: fine) {
  .page-blog-hub .bh-authority-tool-card:hover .bh-authority-tool-media img {
    opacity: 0.94;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .page-blog-hub .bh-authority-tool-media,
  .page-blog-hub .bh-authority-tool-card--sheet .bh-authority-tool-media {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

@media (max-width: 680px) {
  .page-blog-hub .bh-authority-tool-media,
  .page-blog-hub .bh-authority-tool-card--sheet .bh-authority-tool-media {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* v3.6 — animated preview support for Result Sheet Decoder card */
.page-blog-hub .bh-authority-tool-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.9;
}

.page-blog-hub .bh-authority-tool-media--video .bh-authority-tool-fallback {
  display: none;
}

.page-blog-hub .bh-authority-tool-media--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 28%, rgba(0, 212, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.02) 0%, rgba(4, 8, 14, 0.10) 48%, rgba(8, 12, 22, 0.66) 92%, rgba(8, 12, 22, 0.98) 100%);
}

.page-blog-hub .bh-authority-tool-media--video::after {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .page-blog-hub .bh-authority-tool-media--video video {
    display: none;
  }

  .page-blog-hub .bh-authority-tool-media--video .bh-authority-tool-fallback {
    display: block;
  }
}


/* --------------------------------------------------------------------------
   v3.12 — Header exactly like homepage
   The Blog/Driving Hub page previously used a special right-pane/floating header.
   For this iteration, restore the global homepage header behavior:
   full-width fixed header, transparent at rest, dark/blurred when scrolled.
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) {
  .page-blog-hub .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000;
    padding: 16px 24px !important;
    border: 0 !important;
    border-bottom: 1px solid transparent !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .page-blog-hub .site-header.scrolled {
    padding: 10px 24px !important;
    background: rgba(6, 11, 22, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }

  .page-blog-hub .site-header .container {
    max-width: 1300px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  .page-blog-hub .site-header ~ main {
    padding-top: 96px !important;
  }

  .page-blog-hub .bh-wrap {
    padding-top: 16px !important;
  }

  .page-blog-hub .bh-main-col {
    padding-top: 0 !important;
  }

  .page-blog-hub .bh-sidebar-left {
    top: 96px !important;
  }
}

@media (max-width: 768px) {
  .page-blog-hub .site-header {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .page-blog-hub .site-header.scrolled {
    background: rgba(6, 11, 22, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
  }
}


/* --------------------------------------------------------------------------
   v3.14 — Driving Hub hero refresh
   More visual, but still grounded in the existing site language.
   -------------------------------------------------------------------------- */
.page-blog-hub .bh-driving-hub-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
  align-items: stretch;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 40%, rgba(0, 157, 255, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(5, 10, 19, 0.98), rgba(2, 6, 12, 0.98));
  box-shadow: 0 24px 54px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
  isolation: isolate;
}

.page-blog-hub .bh-driving-hub-header-content {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 36px 42px 34px;
}

.page-blog-hub .bh-driving-hub-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 999px;
  background: rgba(0, 156, 255, 0.08);
  color: rgba(0,212,255,0.95);
  letter-spacing: 0.16em;
  font-size: 0.66rem;
}

.page-blog-hub .bh-driving-hub-h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.85rem, 5.2vw, 4.45rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.page-blog-hub .bh-driving-hub-tagline {
  margin: 0 0 16px;
  font-size: clamp(1.1rem, 1.9vw, 1.42rem);
  line-height: 1.25;
  font-weight: 700;
  color: rgba(0,212,255,0.98);
}

.page-blog-hub .bh-driving-hub-lede {
  max-width: 34rem;
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: 1.02rem;
  line-height: 1.6;
}

.page-blog-hub .bh-driving-hub-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-blog-hub .bh-driving-hub-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.90);
  font-size: 0.93rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.page-blog-hub .bh-driving-hub-pill::before {
  content: '';
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #7be7ff 0%, #17bbff 55%, #0a71ff 100%);
  box-shadow: 0 0 14px rgba(0,212,255,0.42);
}

.page-blog-hub .bh-driving-hub-header-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
}

.page-blog-hub .bh-driving-hub-header-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.95) brightness(0.72);
  transform: scale(1.015);
}

.page-blog-hub .bh-driving-hub-header-visual-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,10,19,1) 0%, rgba(5,10,19,0.94) 7%, rgba(5,10,19,0.72) 22%, rgba(5,10,19,0.18) 48%, rgba(5,10,19,0.10) 100%),
    linear-gradient(180deg, rgba(4,8,16,0.14) 0%, rgba(4,8,16,0.55) 100%);
}

.page-blog-hub .bh-driving-hub-route-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: min(290px, calc(100% - 36px));
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9,16,28,0.90), rgba(7,13,24,0.84));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.03);
}

.page-blog-hub .bh-driving-hub-route-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: rgba(0,212,255,0.96);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.page-blog-hub .bh-driving-hub-route-title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  line-height: 1.18;
  color: #fff;
}

.page-blog-hub .bh-driving-hub-route-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.page-blog-hub .bh-driving-hub-route-meta span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-blog-hub .bh-driving-hub-route-meta strong {
  font-size: 0.96rem;
  color: #fff;
  font-weight: 700;
}

.page-blog-hub .bh-driving-hub-route-meta small {
  color: rgba(255,255,255,0.56);
  font-size: 0.73rem;
  line-height: 1.3;
}

.page-blog-hub .bh-driving-hub-route-link {
  display: inline-flex;
  color: rgba(0,212,255,0.98);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .page-blog-hub .bh-driving-hub-header {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.9fr);
  }
  .page-blog-hub .bh-driving-hub-header-content {
    padding: 30px 30px 28px;
  }
}

@media (max-width: 900px) {
  .page-blog-hub .bh-driving-hub-header {
    grid-template-columns: 1fr;
  }
  .page-blog-hub .bh-driving-hub-header-content {
    padding: 28px 22px 24px;
  }
  .page-blog-hub .bh-driving-hub-header-visual {
    min-height: 260px;
  }
  .page-blog-hub .bh-driving-hub-header-visual-fade {
    background:
      linear-gradient(180deg, rgba(5,10,19,0.16) 0%, rgba(5,10,19,0.42) 34%, rgba(5,10,19,0.78) 100%),
      linear-gradient(90deg, rgba(5,10,19,0.25) 0%, rgba(5,10,19,0.05) 100%);
  }
  .page-blog-hub .bh-driving-hub-route-card {
    left: 16px;
    right: 16px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .page-blog-hub .bh-driving-hub-header {
    border-radius: 18px;
  }
  .page-blog-hub .bh-driving-hub-h1 {
    margin-top: 14px;
    font-size: clamp(2.25rem, 10vw, 3.15rem);
  }
  .page-blog-hub .bh-driving-hub-tagline {
    font-size: 1rem;
  }
  .page-blog-hub .bh-driving-hub-lede {
    font-size: 0.95rem;
  }
  .page-blog-hub .bh-driving-hub-pill-row {
    gap: 10px;
  }
  .page-blog-hub .bh-driving-hub-pill {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.84rem;
    white-space: normal;
    line-height: 1.2;
  }
  .page-blog-hub .bh-driving-hub-route-card {
    padding: 14px 14px 13px;
    border-radius: 16px;
  }
  .page-blog-hub .bh-driving-hub-route-title {
    font-size: 1.15rem;
  }
  .page-blog-hub .bh-driving-hub-route-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Route Lab city selector: Chilliwack / Abbotsford / Agassiz-Hope */
.page-blog-hub .bh-route-lab-location-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 860px);
  margin: 0 auto 22px;
  padding: 10px 12px;
  border: 1px solid rgba(102, 232, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 17, 28, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.page-blog-hub .bh-route-lab-location-label {
  flex: 0 0 auto;
  padding-left: 8px;
  color: rgba(226, 241, 250, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* In-card variant: lives inside the Route Lab tool card, stacked and lightweight */
.page-blog-hub .bh-route-lab-location-switch--card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.page-blog-hub .bh-route-lab-location-switch--card .bh-route-lab-location-label {
  padding-left: 0;
  font-size: 0.72rem;
  color: rgba(226, 241, 250, 0.55);
}

.page-blog-hub .bh-route-lab-location-switch--card .bh-route-lab-location-tabs {
  justify-content: flex-start;
}

.page-blog-hub .bh-route-lab-location-switch--card .bh-route-lab-location-chip {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.page-blog-hub .bh-route-lab-location-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.page-blog-hub .bh-route-lab-location-chip,
.route-lab-city-switch a,
.route-lab-city-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(235, 247, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.page-blog-hub .bh-route-lab-location-chip:hover,
.route-lab-city-switch a:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 232, 255, 0.42);
  background: rgba(102, 232, 255, 0.10);
  color: #ffffff;
}

.page-blog-hub .bh-route-lab-location-chip.is-active,
.route-lab-city-switch .is-active {
  border-color: rgba(102, 232, 255, 0.62);
  background: linear-gradient(135deg, rgba(102, 232, 255, 0.18), rgba(212, 175, 91, 0.10));
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(102, 232, 255, 0.08), 0 10px 26px rgba(102, 232, 255, 0.08);
}

.page-blog-hub .bh-route-lab-location-chip.is-disabled,
.route-lab-city-switch span {
  cursor: default;
  opacity: 0.68;
}

.page-blog-hub .bh-route-lab-location-chip em,
.route-lab-city-switch em {
  color: rgba(212, 175, 91, 0.95);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-blog-hub .bh-card-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.page-blog-hub .bh-card-route-links a,
.page-blog-hub .bh-card-route-links span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(235, 247, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.page-blog-hub .bh-card-route-links a:hover {
  border-color: rgba(102, 232, 255, 0.34);
  color: #ffffff;
}

.route-lab-city-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 760px) {
  .page-blog-hub .bh-route-lab-location-switch {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
    margin-bottom: 18px;
    padding: 12px;
  }

  .page-blog-hub .bh-route-lab-location-label {
    padding-left: 2px;
    text-align: center;
  }

  .page-blog-hub .bh-route-lab-location-tabs,
  .route-lab-city-switch {
    justify-content: center;
  }

  .page-blog-hub .bh-route-lab-location-chip,
  .route-lab-city-switch a,
  .route-lab-city-switch span {
    flex: 1 1 auto;
    padding-inline: 12px;
  }
}

/* ============================================================
   Unified inner-page Hub sidebar (20260601 hub-unify)
   Used on article + interactive inner pages so the left rail
   matches the /blog/ hub: "Hub Tools" + "Library" instead of
   the old <details> topic accordion.
   ============================================================ */
.page-blog-hub .bh-hub-browse {
  gap: 14px;
}

.page-blog-hub .bh-hub-tool-list,
.page-blog-hub .bh-hub-filter-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Hub Tools — primary, prominent rows with a forward chevron */
.page-blog-hub .bh-hub-tool-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(8, 12, 22, 0.65);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}

.page-blog-hub .bh-hub-tool-link::after {
  content: "›";
  font-size: 1rem;
  font-weight: 800;
  color: rgba(0, 212, 255, 0.55);
  flex-shrink: 0;
  transition: color 0.18s, transform 0.18s;
}

.page-blog-hub .bh-hub-tool-link:hover,
.page-blog-hub .bh-hub-tool-link:focus-visible {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(2px);
  outline: none;
}

.page-blog-hub .bh-hub-tool-link:hover::after,
.page-blog-hub .bh-hub-tool-link:focus-visible::after {
  color: rgba(0, 212, 255, 0.95);
  transform: translateX(2px);
}

.page-blog-hub .bh-hub-tool-link[aria-current="page"] {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
  cursor: default;
}

.page-blog-hub .bh-hub-tool-link[aria-current="page"]::after {
  content: "•";
  color: rgba(0, 212, 255, 0.95);
}

/* Library — compact secondary filter rows */
.page-blog-hub .bh-hub-filter-list a {
  display: block;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  background: rgba(8, 12, 22, 0.4);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.page-blog-hub .bh-hub-filter-list a:hover,
.page-blog-hub .bh-hub-filter-list a:focus-visible {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.32);
  background: rgba(0, 212, 255, 0.07);
  outline: none;
}

/* Active filter state (set by blog-hub.js on the /blog/ index) */
.page-blog-hub .bh-hub-filter-list a.is-active,
.page-blog-hub .bh-hub-filter-list a[aria-current="true"] {
  color: #fff;
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.22);
}

/* ============================================================
   Slim Driving Hub header (20260601 hub-slim) — single column,
   compact, so the tools rise into view instead of a full-screen hero.
   ============================================================ */
.page-blog-hub .bh-driving-hub-header--slim {
  display: block;
  margin: 0 0 22px;
  padding: 26px 32px;
}

.page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-header-content {
  padding: 0;
  max-width: 760px;
}

.page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-h1 {
  margin: 14px 0 8px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-lede {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .page-blog-hub .bh-driving-hub-header--slim {
    padding: 20px 18px;
  }
}


/* ============================================================
   Driving Hub UI polish (20260602)
   - restores emotion to the compact hero with a light abstract map visual
   - keeps tool cards compact after removing the in-card area switcher
   - normalizes Driving Hub home icon states with the other sidebar icons
   ============================================================ */
.page-blog-hub .bh-driving-hub-header--slim {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.56fr);
  align-items: stretch;
  min-height: 236px;
  margin: 0 0 30px;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 84%, rgba(0, 212, 255, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(5, 10, 18, 0.98), rgba(2, 6, 12, 0.98));
}

.page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-header-content {
  position: relative;
  z-index: 2;
  max-width: none;
  padding: 30px 34px 28px;
}

.page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-h1 {
  margin: 12px 0 10px;
  font-size: clamp(2.45rem, 4.6vw, 3.8rem);
  letter-spacing: -0.055em;
}

.page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-lede {
  max-width: 38rem;
  margin: 0;
  color: rgba(235, 247, 255, 0.74);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.58;
}

.page-blog-hub .bh-driving-hub-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-blog-hub .bh-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.page-blog-hub .bh-hero-action--primary {
  border: 1px solid rgba(102, 232, 255, 0.48);
  background: linear-gradient(135deg, rgba(102, 232, 255, 0.22), rgba(0, 212, 255, 0.09));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 212, 255, 0.10);
}

.page-blog-hub .bh-hero-action--ghost {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(235, 247, 255, 0.84);
}

.page-blog-hub .bh-hero-action:hover,
.page-blog-hub .bh-hero-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(102, 232, 255, 0.62);
  color: #ffffff;
  outline: none;
}

.page-blog-hub .bh-driving-hub-header-art {
  position: relative;
  min-height: 236px;
  overflow: hidden;
}

.page-blog-hub .bh-driving-hub-header-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,10,18,0.98) 0%, rgba(5,10,18,0.70) 18%, rgba(5,10,18,0.22) 48%, rgba(5,10,18,0.08) 100%),
    linear-gradient(180deg, rgba(3,6,12,0.06), rgba(3,6,12,0.42));
}

.page-blog-hub .bh-driving-hub-header-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  transform: scale(1.02);
}

/* Keep the three tool cards tight and balanced. The area choice now belongs inside the Route Lab flow, not inside the overview card. */
.page-blog-hub .bh-road-test-lab--authority {
  margin-top: 34px;
}

.page-blog-hub .bh-authority-tool-content {
  gap: 9px;
  padding: 22px 24px 24px;
}

.page-blog-hub .bh-authority-tool-text {
  line-height: 1.58;
}

.page-blog-hub .bh-authority-tool-link {
  padding-top: 5px;
}

/* Sidebar home icon: inactive = cyan like the other icons; hover/active = white + glow. */
.page-blog-hub .bh-sidebar-home-icon {
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: rgba(0, 212, 255, 0.10);
  color: var(--r-accent, #00d4ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.page-blog-hub .bh-sidebar-home:hover .bh-sidebar-home-icon,
.page-blog-hub .bh-sidebar-home:focus-visible .bh-sidebar-home-icon,
.page-blog-hub .bh-sidebar-home[aria-current="page"] .bh-sidebar-home-icon {
  border-color: rgba(0, 212, 255, 0.36);
  background: rgba(0, 212, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

@media (max-width: 920px) {
  .page-blog-hub .bh-driving-hub-header--slim {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .page-blog-hub .bh-driving-hub-header-art {
    min-height: 170px;
    order: -1;
  }

  .page-blog-hub .bh-driving-hub-header-art::before {
    background:
      linear-gradient(180deg, rgba(3,6,12,0.08) 0%, rgba(3,6,12,0.78) 100%),
      linear-gradient(90deg, rgba(5,10,18,0.38), rgba(5,10,18,0.04));
  }
}

@media (max-width: 680px) {
  .page-blog-hub .bh-driving-hub-header--slim .bh-driving-hub-header-content {
    padding: 22px 20px 24px;
  }

  .page-blog-hub .bh-driving-hub-header-art {
    min-height: 138px;
  }

  .page-blog-hub .bh-driving-hub-header-actions {
    gap: 8px;
  }

  .page-blog-hub .bh-hero-action {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.72rem;
  }

  .page-blog-hub .bh-authority-tool-content {
    padding: 20px 20px 22px;
  }
}
