

.blog-page .hero.blog-hero {
  min-height: 92svh;
}

.blog-page .blog-hero-inner {
  max-width: 980px;
}

.blog-breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.72);
}

.blog-breadcrumbs a {
  color: inherit;
  text-decoration: underline;
}

.blog-page .blog-hero-title {
  margin: 0 0 1rem;
  max-width: 13ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: #fff;
  text-wrap: balance;
}

.blog-page .blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 1.35rem;
}

/*
 * Layout the hero anchor navigation in two rows of three pills each. Using
 * a 3‑column grid ensures that the six shortcuts always appear in two lines
 * regardless of screen width. We keep a small gap between items and limit
 * the width for better centering within the hero.
 */
.blog-page .hero-anchor-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 920px;
  margin-top: 0.5rem;
}

.blog-section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.12);
  color: var(--primary, #3b82f6);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/*
 * Show anchor navigation items in two columns by default instead of three.
 * This ensures the six blog category pills appear two per row on larger screens,
 * as requested. The existing media queries below still reduce to two columns on
 * medium screens and one column on small screens.
 */
.blog-anchor-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.blog-anchor-link,
.blog-anchor-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(11,16,34,0.45);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

/*
 * Customize the pills in the hero section. These category links should be
 * smaller, horizontal pills that stand out against the dark hero background.
 * We lighten the background slightly and use the primary brand colour for the
 * text and border to ensure contrast and consistency. This rule comes after
 * the generic anchor styles so it properly overrides them.
 */
.blog-page .hero-anchor-nav .blog-anchor-link {
  flex-direction: row;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(59,130,246,0.12);
  /* Use a lighter blue for the text to match the accent used on the cards */
  color: hsl(217, 100%, 88%);
  border: 1px solid rgba(59,130,246,0.35);
}

.blog-page .hero-anchor-nav .blog-anchor-link:hover {
  background: rgba(59,130,246,0.18);
  border-color: rgba(59,130,246,0.55);
  transform: translateY(-2px);
}

/*
 * Style the blog directory pills (link cards) with the same blue tone used
 * throughout the site. Center the text to improve readability.
 */
/*
 * Directory pills (blog-anchor-card) use the primary blue for their background.
 * We adjust the text colours to a lighter blue to improve contrast against
 * the dark background, matching the accent used in the subsequent cards.
 */
.blog-anchor-card {
  background: var(--primary, #3b82f6);
  color: hsl(217, 100%, 93%);
  border-color: transparent;
  text-align: center;
  box-shadow: 0 16px 40px rgba(59,130,246,0.15);
}

/* Lighter text for the secondary line in directory pills */
.blog-anchor-card span {
  color: hsl(217, 100%, 85%);
  font-size: 0.95rem;
  line-height: 1.5;
}

.blog-anchor-link:hover,
.blog-anchor-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.55);
}


.blog-topic-card {
  overflow: hidden;
}

.blog-topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
}

.blog-topic-card .media {
  min-height: 100%;
}

.blog-topic-card .media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.blog-topic-body {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.blog-topic-body p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted-foreground, #475569);
}

.blog-topic-body a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.blog-feature-list {
  margin: 1.15rem 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--foreground, #0b1022);
}

.blog-feature-list li {
  margin: 0.45rem 0;
  line-height: 1.65;
}

.blog-topic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.blog-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

.blog-related-links a {
  font-size: 0.95rem;
  color: var(--muted-foreground, #475569);
}

.blog-cta-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}

.blog-page .nav-link[aria-current="page"],
.blog-page .m-link[aria-current="page"] {
  color: var(--primary, #3b82f6);
}

@media (max-width: 1024px) {
  .blog-anchor-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-topic-grid {
    grid-template-columns: 1fr;
  }

  .blog-page .blog-hero-title {
    max-width: 16ch;
  }
}

@media (max-width: 640px) {
  .blog-page .hero.blog-hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .blog-anchor-nav {
    grid-template-columns: 1fr;
  }

  .blog-anchor-link,
  .blog-anchor-card {
    padding: 0.95rem 1rem;
  }

  .blog-topic-card .media img {
    min-height: 240px;
  }

  .blog-page .blog-hero-actions,
  .blog-topic-actions,
  .blog-related-links {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-page .blog-hero-title {
    max-width: 12ch;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
}


/* Blog page cleanup: moved prior forced HTML styles into CSS */
.blog-directory-card .blog-topic-body,
.blog-directory-card .section-lead {
  text-align: center;
}

.blog-anchor-nav {
  justify-items: stretch;
  align-items: stretch;
}

.blog-anchor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.3rem;
  background: hsl(217 91% 60% / 0.08);
  border: 1px solid hsl(217 91% 60% / 0.18);
  box-shadow: 0 10px 24px rgba(59,130,246,.08);
}

.blog-anchor-card strong,
.blog-anchor-card span {
  display: block;
  width: 100%;
  text-align: center;
}

.blog-anchor-card strong {
  color: var(--foreground);
}

.blog-anchor-card span {
  color: var(--muted-foreground);
}

.trust-intro-card {
  overflow: hidden;
}

.trust-intro-inner {
  padding: clamp(1.45rem, 3vw, 2rem);
}

.trust-intro-card .section-title {
  max-width: 18ch;
  margin: 0 auto 1rem;
}

.trust-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.trust-kpi-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 0.8rem;
  border-radius: 18px;
  background: hsl(217 91% 60% / 0.08);
  border: 1px solid hsl(217 91% 60% / 0.18);
  box-shadow: 0 10px 24px rgba(59,130,246,.08);
  min-height: 104px;
}

.trust-kpi-value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--foreground);
}

.trust-kpi-label {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted-foreground);
  font-weight: 600;
  text-align: center;
}

.faq-card .faq-list.faq-visible .faq-q {
  cursor: default;
  pointer-events: none;
}

.faq-card .faq-list.faq-visible .faq-toggle {
  display: none;
}

.faq-card .faq-list.faq-visible .faq-a {
  display: block;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.cta-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-copy .badge,
.cta-copy a {
  align-self: center;
}

.blog-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(59,130,246,.10);
  border: 1px solid rgba(59,130,246,.22);
  color: #3b82f6;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.blog-cta-pill:hover {
  background: rgba(59,130,246,.16);
  border-color: rgba(59,130,246,.30);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .trust-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
