/* LeadFive editorial system: shared styling for blog and lower pages */
:root {
  --lf-ink: #f7f4ee;
  --lf-muted: rgba(247, 244, 238, 0.82);
  --lf-soft: rgba(247, 244, 238, 0.12);
  --lf-line: rgba(247, 244, 238, 0.18);
  --lf-panel: rgba(255, 255, 255, 0.055);
  --lf-panel-strong: rgba(255, 255, 255, 0.09);
  --lf-blue: #b9dcff;
  --lf-cyan: #6ee7f9;
  --lf-rose: #f6b2c4;
  --lf-gold: #e7cf8e;
  --lf-bg: #08090b;
}

body:not(.homepage) {
  background:
    radial-gradient(56rem 42rem at 82% 8%, rgba(120, 170, 255, 0.16), transparent 70%),
    radial-gradient(42rem 32rem at 8% 16%, rgba(246, 178, 196, 0.10), transparent 68%),
    linear-gradient(180deg, #0b0c10 0%, #08090b 42%, #0d0f14 100%) !important;
  color: var(--lf-ink);
}

body.blog-page {
  background:
    radial-gradient(54rem 36rem at 80% 6%, rgba(70, 124, 205, 0.18), transparent 68%),
    radial-gradient(34rem 28rem at 8% 14%, rgba(125, 92, 150, 0.12), transparent 66%),
    linear-gradient(180deg, #050609 0%, #08090b 48%, #0b0d12 100%) !important;
}

body.blog-page .video-background,
body.blog-page .video-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

body:not(.homepage)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(185, 220, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 220, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 48%, transparent 100%);
  opacity: .28;
}

body:not(.homepage) .site-header,
body.blog-page .site-header,
body.blog-page .navbar,
body.blog-page nav.navbar {
  background: rgba(8, 9, 11, 0.76) !important;
  border-bottom: 1px solid rgba(247, 244, 238, 0.12) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
}

body.blog-page .nav-link,
body.blog-page nav.navbar .nav-link,
body.blog-page nav.navbar a,
body.blog-page .navbar a,
body.blog-page .navbar-nav .nav-item .nav-link,
body.blog-page a.nav-link,
.blog-page .nav-link {
  background: transparent !important;
  background-color: transparent !important;
  color: rgba(255, 255, 255, .78) !important;
  border-radius: 0 !important;
}

body.blog-page .navbar-brand .logo-text,
body.blog-page .logo-text {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.editorial-shell,
.blog-hub,
.blog-post {
  position: relative;
  overflow: hidden;
  background: #08090b;
  color: var(--lf-ink);
}

.blog-hub {
  min-height: 100vh;
  padding-top: 6.8rem;
}

.blog-hub::after,
.blog-post::after {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(58vw, 720px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .38;
  background:
    radial-gradient(circle at 18% 28%, rgba(247, 244, 238, .75) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 18%, rgba(185, 220, 255, .88) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 58%, rgba(246, 178, 196, .76) 0 2px, transparent 3px),
    conic-gradient(from 140deg at 52% 52%, transparent 0 18%, rgba(185, 220, 255, .22) 19%, transparent 21% 45%, rgba(246, 178, 196, .2) 46%, transparent 48% 100%);
}

.blog-hub .container,
.blog-post .container {
  position: relative;
  z-index: 1;
}

.blog-hero {
  padding: 5.5rem 0 3.25rem;
  border-bottom: 1px solid var(--lf-line);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.eyebrow,
.post-meta,
.blog-card-date,
.insight-kicker {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, .48);
}

.blog-hero h1,
.post-title {
  margin: 0;
  color: var(--lf-ink);
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: 0;
}

.blog-hero p,
.post-excerpt,
.content-wrapper,
.blog-card-excerpt {
  color: var(--lf-muted);
}

.blog-hero .lead {
  max-width: 760px;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.9;
}

.blog-promise {
  display: grid;
  gap: .85rem;
}

.promise-card,
.blog-card,
.editorial-panel,
.post-hero,
.post-navigation .nav-link,
.share-link,
.related-post,
.cta-section,
.content-wrapper blockquote {
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 220, 255, .10), transparent 50%),
    rgba(9, 12, 18, .86);
  border: 1px solid var(--lf-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.promise-card,
.editorial-panel {
  padding: 1.1rem;
}

.promise-card strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--lf-ink);
  font-size: 1rem;
}

.promise-card span,
.editorial-panel p {
  color: rgba(247, 244, 238, .62);
  line-height: 1.7;
}

.blog-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 20px 6rem;
}

.blog-topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.blog-hub .page-header {
  margin: 0 0 2rem;
  padding: 4rem 0 2rem;
  background: transparent !important;
  border-bottom: 1px solid var(--lf-line);
  text-align: left;
}

.blog-hub .page-title,
.blog-hub .page-header h1 {
  color: var(--lf-ink) !important;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.blog-hub .page-subtitle,
.blog-hub .page-header p {
  color: var(--lf-muted) !important;
}

.blog-hub .blog-section {
  padding: 2rem 0 5rem;
}

.blog-hub .glass-card,
.blog-hub .post-item,
.blog-hub .sidebar-widget,
.blog-hub .no-posts {
  background:
    radial-gradient(circle at 20% 0%, rgba(185, 220, 255, .10), transparent 50%),
    rgba(9, 12, 18, .88) !important;
  border: 1px solid var(--lf-line) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.topic-pill,
.blog-card-category,
.tag,
.categories a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: .35rem .72rem;
  border: 1px solid rgba(185, 220, 255, .26);
  background: rgba(185, 220, 255, .07);
  color: var(--lf-blue);
  text-decoration: none;
  font-size: .78rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.blog-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 220, 255, .4);
  background:
    radial-gradient(circle at 18% 0%, rgba(246, 178, 196, .12), transparent 54%),
    var(--lf-panel-strong);
}

.blog-card-image {
  height: 190px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.blog-card-title {
  margin: .8rem 0 .7rem;
  color: var(--lf-ink);
  font-size: 1.08rem;
  line-height: 1.55;
}

.blog-card-excerpt {
  margin: 0;
  font-size: .92rem;
  line-height: 1.7;
}

.blog-card-signal {
  margin-top: auto;
  padding-top: 1.2rem;
  color: rgba(231, 207, 142, .88);
  font-size: .82rem;
}

.post-header {
  padding: 11rem 0 4.5rem;
  border-bottom: 1px solid var(--lf-line);
  background: transparent;
  text-align: left;
}

.post-title {
  max-width: 1120px;
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5.8vw, 5.8rem);
}

.post-excerpt {
  max-width: 780px;
  margin-top: 1.25rem;
  font-size: 1.1rem;
  line-height: 1.9;
}

.post-intent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 2rem;
  max-width: 980px;
}

.post-intent div {
  border: 1px solid var(--lf-line);
  background: rgba(255, 255, 255, .045);
  padding: .85rem;
}

.post-intent span {
  display: block;
  margin-bottom: .35rem;
  color: rgba(247, 244, 238, .42);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.post-intent strong {
  color: var(--lf-ink);
  font-size: .95rem;
  line-height: 1.5;
}

.post-content {
  padding: 4.8rem 0 7rem;
}

.content-wrapper,
.post-footer,
.post-navigation,
.related-posts,
.cta-section {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.content-wrapper {
  font-size: 1.08rem;
  line-height: 1.95;
}

.content-wrapper h2 {
  margin: 3.4rem 0 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--lf-blue);
  color: var(--lf-ink);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.35;
}

.content-wrapper h3 {
  margin: 2.4rem 0 1rem;
  color: var(--lf-ink);
  font-size: 1.35rem;
}

.content-wrapper p,
.content-wrapper li {
  color: rgba(247, 244, 238, .84);
}

.content-wrapper strong {
  color: var(--lf-ink);
}

.content-wrapper a {
  color: var(--lf-blue);
  text-decoration-color: rgba(185, 220, 255, .38);
}

.content-wrapper blockquote {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 2px solid var(--lf-rose);
  color: rgba(247, 244, 238, .78);
}

.content-wrapper img,
.post-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.post-hero {
  max-width: 1040px;
  margin-top: 2.4rem;
  overflow: hidden;
}

.share-links,
.tags,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.share-link,
.post-navigation .nav-link {
  color: var(--lf-ink);
  text-decoration: none;
  padding: .75rem 1rem;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--lf-line);
}

.post-footer h4,
.related-posts h3,
.cta-section h3 {
  color: var(--lf-ink);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.post-navigation .nav-link span {
  display: block;
  margin-bottom: .5rem;
  color: rgba(247, 244, 238, .45);
  font-size: .8rem;
}

.post-navigation .nav-link strong {
  color: var(--lf-ink);
  line-height: 1.45;
}

.related-posts {
  margin-top: 3.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-post a {
  display: block;
  height: 100%;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.related-post h4 {
  color: var(--lf-ink);
  font-size: .98rem;
  line-height: 1.5;
}

.related-post p,
.related-meta {
  color: rgba(247, 244, 238, .58);
  font-size: .84rem;
}

.cta-section {
  margin-top: 3.5rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.cta-section p {
  color: rgba(247, 244, 238, .68);
}

.btn-outline {
  border: 1px solid rgba(247, 244, 238, .3);
  background: rgba(255, 255, 255, .04);
  color: var(--lf-ink);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  border: 1px solid var(--lf-line);
  padding: .55rem .9rem;
  color: var(--lf-ink);
  text-decoration: none;
}

.pagination .current {
  background: var(--lf-blue);
  color: #08101b;
}

body:not(.homepage):not(.blog-page) .page-content {
  position: relative;
  padding-top: 104px;
  background: transparent !important;
}

body:not(.homepage):not(.blog-page) .page-content > * {
  position: relative;
  z-index: 1;
}

body:not(.homepage):not(.blog-page) .page-content h1,
body:not(.homepage):not(.blog-page) .page-content h2,
body:not(.homepage):not(.blog-page) .page-content h3 {
  color: var(--lf-ink) !important;
}

body:not(.homepage):not(.blog-page) .page-content p,
body:not(.homepage):not(.blog-page) .page-content li {
  color: rgba(247, 244, 238, .72) !important;
}

@media (max-width: 980px) {
  .blog-hero-grid,
  .post-intent {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .blog-hub {
    padding-top: 5.2rem;
  }

  .blog-hero {
    padding: 3rem 0 2rem;
  }

  .blog-grid,
  .related-grid,
  .post-navigation {
    grid-template-columns: 1fr;
  }

  .blog-card {
    min-height: auto;
  }

  .post-header {
    padding: 7.4rem 0 3rem;
  }
}
