/* ==========================================================================
   PRISM — Blog page (page-specific; shared components live in
   components.css / sections.css and are reused here, not redefined)
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Blog hero — centered, text-only, same recipe as About/Contact heroes    */
/* ---------------------------------------------------------------------- */
.blog-hero {
  background: radial-gradient(120% 85% at 50% -5%, var(--bg-alt) 0%, #F4F7FC 55%, #E9ECF0 100%);
  padding-top: 57.600px;
  padding-bottom: var(--space-8);
  position: relative;
  overflow: clip;
  text-align: center;
}
.blog-hero__inner { position: relative; z-index: 1; max-width: 960px; margin-inline: auto; }
.blog-hero__badge { margin-bottom: var(--space-5); }
.blog-hero__badge svg { color: var(--brand-blue); }
.blog-hero__title { margin-bottom: var(--space-5); text-wrap: balance; }
.blog-hero__title em {
  font-style: normal;
  font-weight: inherit;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--color-secondary, #3F8DFE);
  color: var(--color-secondary, #3F8DFE);
}
.blog-hero__sub { font-size: var(--fs-lead); color: var(--ink-500); max-width: 56ch; margin-inline: auto; }

.blog-hero .bg-mesh__blob--1 { width: 360px; height: 360px; top: -120px; right: -80px; opacity: 0.32; }
.blog-hero .bg-mesh__blob--2 { width: 300px; height: 300px; bottom: -140px; left: -100px; opacity: 0.26; }
[data-theme="dark"] .blog-hero .bg-mesh__blob--1 { opacity: 0.22; }
[data-theme="dark"] .blog-hero .bg-mesh__blob--2 { opacity: 0.18; }
@media (max-width: 640px) {
  .blog-hero .bg-mesh__blob--1 { width: 240px; height: 240px; top: -70px; right: -60px; opacity: 0.28; }
  .blog-hero .bg-mesh__blob--2 { width: 200px; height: 200px; bottom: -90px; left: -70px; opacity: 0.22; }
}

/* ---------------------------------------------------------------------- */
/* Post grid — one fixed image ratio + min-height/line-clamp pairs on      */
/* title and excerpt, so every card lands at the same height regardless    */
/* of exact copy length (same fix applied to the portfolio case studies).  */
/* ---------------------------------------------------------------------- */
.blog__grid { grid-template-columns: repeat(3, 1fr); }
.blog-card { min-width: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-card__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--brand-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__visual img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.blog-card__visual svg { position: relative; z-index: 0; width: 30%; height: 30%; color: var(--brand-indigo); opacity: 0.85; }
[data-theme="dark"] .blog-card__visual svg { color: var(--brand-aqua); }

.blog-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex-grow: 1; }
.blog-card__category { margin-bottom: var(--space-3); }

.blog-card__title a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-base); }
.blog-card__title a:hover { color: var(--brand-indigo); }
[data-theme="dark"] .blog-card__title a:hover { color: var(--brand-aqua); }
.blog-card__title {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: var(--space-3);
  min-height: calc(24px * 1.25 * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__excerpt {
  color: var(--ink-500);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  min-height: calc(0.9375rem * var(--lh-body) * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  font-size: 0.8125rem;
  color: var(--ink-300);
  margin-bottom: var(--space-4);
  margin-top: auto;
}
.blog-card__link { align-self: flex-start; }

@media (max-width: 1024px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog__grid { grid-template-columns: 1fr; } }

[data-theme="dark"] .blog-hero {
  background: radial-gradient(120% 85% at 50% -5%, #0F1A2D 0%, #06101E 65%, #03070E 100%);
}

.blog-hero .bg-mesh__blob--1 {
  background: radial-gradient(circle, rgba(63, 141, 254, 0.24) 0%, rgba(161, 200, 243, 0.1) 60%, transparent 80%);
}
.blog-hero .bg-mesh__blob--2 {
  background: radial-gradient(circle, rgba(161, 200, 243, 0.3) 0%, rgba(233, 236, 240, 0.15) 60%, transparent 80%);
}
[data-theme="dark"] .blog-hero .bg-mesh__blob--1 {
  background: radial-gradient(circle, rgba(63, 141, 254, 0.22) 0%, transparent 75%);
}
[data-theme="dark"] .blog-hero .bg-mesh__blob--2 {
  background: radial-gradient(circle, rgba(161, 200, 243, 0.15) 0%, transparent 75%);
}


/* Section head polish on blog page */
.page-template-page-blog #posts .section__head,
body.blog #posts .section__head {
  margin-bottom: var(--space-6);
}
.page-template-page-blog #posts .section__eyebrow,
body.blog #posts .section__eyebrow {
  margin-bottom: 0.875rem;
}
.page-template-page-blog #posts .section__title,
body.blog #posts .section__title {
  font-size: 49px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .page-template-page-blog #posts .section__title,
  body.blog #posts .section__title {
    font-size: 32px;
  }
}
.page-template-page-blog #posts .section__lead,
body.blog #posts .section__lead {
  margin-inline: auto;
}


/* ==========================================================================
   Blog Page CTA Heading Mobile Size (29px)
   ========================================================================== */
@media (max-width: 768px) {
  body.page-id-58 .nuvexa-cta-card__title,
  body.page-id-58 .cta-band__title,
  body.blog .nuvexa-cta-card__title,
  body.blog .cta-band__title,
  .page-template-page-blog .nuvexa-cta-card__title,
  .page-template-page-blog .cta-band__title {
    font-size: 29px !important;
  }
}
