/* Blog PrestaShop — midnight navy hero + paper editorial feed. Not purple / cream. */

.page-blog.bl-page,
.bl-page {
  --bl-ink: #0b1220;
  --bl-navy: #142033;
  --bl-muted: #5c6b80;
  --bl-blue: #2f6fed;
  --bl-sky: #6ea0ff;
  --bl-soft: rgba(47, 111, 237, 0.12);
  --bl-paper: #f5f7fb;
  --bl-line: #d7e0ee;
  --bl-display: "Fraunces", "Libre Baskerville", Georgia, serif;
  --bl-sans: "Manrope", "DM Sans", system-ui, sans-serif;
  font-family: var(--bl-sans);
  color: var(--bl-ink);
  background: var(--bl-paper);
}

.bl-hero {
  position: relative;
  min-height: 88svh;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b1220;
  padding-top: 72px;
  box-sizing: border-box;
}

.bl-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bl-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transform: scale(1.05);
  animation: bl-hero-pan 22s ease-in-out infinite alternate;
}

@keyframes bl-hero-pan {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.4%, -1%, 0); }
}

.bl-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(108deg, rgba(7, 12, 24, 0.96) 0%, rgba(7, 12, 24, 0.88) 40%, rgba(7, 12, 24, 0.42) 72%, rgba(7, 12, 24, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 12, 24, 0.5) 0%, rgba(7, 12, 24, 0.16) 48%, rgba(7, 12, 24, 0.78) 100%);
  pointer-events: none;
}

.bl-hero-glow {
  position: absolute;
  inset: auto auto -18% -10%;
  width: 52vw;
  height: 52vw;
  z-index: 1;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.28), transparent 68%);
  pointer-events: none;
  animation: bl-glow 8s ease-in-out infinite alternate;
}

@keyframes bl-glow {
  from { opacity: 0.55; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(5%, -3%, 0); }
}

.bl-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 3.5rem) 0;
}

.bl-brand {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
}

.bl-hero h1 {
  margin: 0.45rem 0 0.85rem !important;
  max-width: 12ch;
  font-family: var(--bl-display) !important;
  font-size: clamp(2.5rem, 6.2vw, 4.3rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-weight: 700 !important;
}

.bl-hero h1 .accent,
.bl-hero h1 em {
  color: var(--bl-sky) !important;
  -webkit-text-fill-color: var(--bl-sky) !important;
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.bl-hero-copy {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.6;
  font-weight: 500;
  color: #d7e4ff !important;
}

.bl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.bl-hero-actions .btn-green {
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.28);
  animation: bl-pulse 2.4s ease-in-out infinite;
}

.bl-hero-actions .btn-primary {
  background: var(--bl-blue) !important;
  border-color: var(--bl-blue) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(47, 111, 237, 0.28);
}

.bl-hero-actions .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
}

@keyframes bl-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.bl-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
}

.bl-hero-proof span::before {
  content: "✓ ";
  color: var(--bl-sky);
}

.bl-section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.bl-feed-head {
  max-width: 40rem;
  margin: 0 0 2rem;
  text-align: left;
}

.bl-feed-head .section-kicker,
.bl-final .section-kicker {
  display: inline-block !important;
  color: var(--bl-blue) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
}

.bl-feed-head h2,
.bl-final h2 {
  margin: 0.5rem 0 0.65rem !important;
  font-family: var(--bl-display) !important;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em;
  color: var(--bl-ink) !important;
}

.bl-feed-head .lead,
.bl-final .lead {
  margin: 0 !important;
  max-width: 36rem;
  color: var(--bl-muted) !important;
  font-size: 1.08rem !important;
  line-height: 1.65 !important;
  text-align: left;
}

.bl-featured {
  display: block;
  padding: clamp(1.4rem, 3vw, 2rem) 0;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 2px solid var(--bl-blue);
  border-bottom: 1px solid var(--bl-line);
}

.bl-featured h2 {
  margin: 0.45rem 0 0.7rem;
  font-family: var(--bl-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.bl-featured h2 a,
.bl-item h3 a {
  color: inherit;
  text-decoration: none;
}

.bl-featured h2 a:hover,
.bl-item h3 a:hover,
.bl-more:hover {
  color: var(--bl-blue);
}

.bl-featured p,
.bl-item p {
  margin: 0 0 0.75rem;
  color: var(--bl-muted);
  line-height: 1.6;
  max-width: 46rem;
}

.bl-cat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bl-blue);
}

.bl-meta {
  font-size: 0.92rem !important;
  color: #7a8799 !important;
  font-weight: 600 !important;
}

.bl-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.bl-list {
  display: grid;
  gap: 0;
}

.bl-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--bl-line);
}

.bl-item h3 {
  margin: 0.4rem 0 0.55rem;
  font-family: var(--bl-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.25;
  color: var(--bl-ink);
}

.bl-more {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 800;
  color: var(--bl-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--bl-blue);
}

.bl-filter,
.bl-empty {
  margin: 0 0 1rem;
  color: var(--bl-muted);
  font-weight: 600;
}

.bl-filter a {
  color: var(--bl-blue);
  font-weight: 800;
}

.bl-aside {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 96px;
}

.bl-aside-block {
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--bl-line);
}

.bl-aside-block h3 {
  margin: 0 0 0.55rem;
  font-family: var(--bl-display);
  font-size: 1.15rem;
  color: var(--bl-ink);
}

.bl-aside-block p {
  margin: 0;
  color: var(--bl-muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.bl-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.bl-cats a {
  color: var(--bl-ink);
  text-decoration: none;
  font-weight: 700;
}

.bl-cats a:hover,
.bl-cats a[aria-current="page"] {
  color: var(--bl-blue);
}

.bl-cats span {
  color: var(--bl-muted);
  font-weight: 600;
}

.bl-aside-cta .btn-green {
  margin-top: 0.85rem;
}

.bl-final {
  background:
    radial-gradient(600px 240px at 12% 0%, rgba(47, 111, 237, 0.1), transparent 60%),
    linear-gradient(180deg, #eef3fb 0%, #f5f7fb 100%);
  border-top: 1px solid var(--bl-line);
}

.bl-final-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: end;
}

.bl-final-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bl-final-actions .btn-primary {
  background: var(--bl-blue) !important;
  border-color: var(--bl-blue) !important;
  color: #fff !important;
}

@media (max-width: 980px) {
  .bl-layout,
  .bl-final-inner {
    grid-template-columns: 1fr;
  }
  .bl-aside {
    position: static;
  }
  .bl-hero h1 { max-width: 11ch; }
}


/* ——— Single blog post (wow editorial) ——— */
.page-blog.bl-page.page-blog-post,
.bl-page.page-blog-post {
  background: var(--bl-paper);
}

/* Hide legacy inner-hero chrome; we render bl-post-hero instead */
.page-blog-post .inner-hero.variant-blog-post {
  display: none !important;
}

.bl-post-hero {
  position: relative;
  min-height: 72svh;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b1220;
  padding-top: 72px;
  box-sizing: border-box;
}

.bl-post-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bl-post-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform: scale(1.04);
  animation: bl-hero-pan 22s ease-in-out infinite alternate;
}

.bl-post-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(108deg, rgba(7, 12, 24, 0.97) 0%, rgba(7, 12, 24, 0.9) 42%, rgba(7, 12, 24, 0.55) 72%, rgba(7, 12, 24, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 12, 24, 0.45) 0%, rgba(7, 12, 24, 0.15) 40%, rgba(7, 12, 24, 0.88) 100%);
  pointer-events: none;
}

.bl-post-hero-glow {
  position: absolute;
  inset: auto auto -20% -12%;
  width: 55vw;
  height: 55vw;
  z-index: 1;
  background: radial-gradient(circle, rgba(47, 111, 237, 0.26), transparent 68%);
  pointer-events: none;
  animation: bl-glow 8s ease-in-out infinite alternate;
}

.bl-post-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - clamp(40px, 6vw, 96px)));
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
}

.bl-post-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.bl-post-crumb a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 160, 255, 0.55);
}

.bl-post-crumb a:hover {
  color: var(--bl-sky);
}

.bl-post-cat {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bl-sky) !important;
}

.bl-post-hero h1 {
  margin: 0 0 1rem !important;
  max-width: 22ch;
  font-family: var(--bl-display) !important;
  font-size: clamp(2rem, 4.8vw, 3.35rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
  font-weight: 700 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.45);
}

.bl-post-meta {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: rgba(215, 228, 255, 0.92) !important;
}

.bl-post-lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  font-weight: 500;
  color: #d7e4ff !important;
}

.bl-post-section {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.bl-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.65fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  width: min(1380px, calc(100% - clamp(40px, 6vw, 96px)));
  margin: 0 auto;
}

.bl-post-article {
  min-width: 0;
}

.bl-post-content {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--bl-ink);
}

.bl-post-content > :first-child {
  margin-top: 0;
}

.bl-post-content h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--bl-display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--bl-ink);
}

.bl-post-content h3 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--bl-display);
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--bl-ink);
}

.bl-post-content p {
  margin: 0 0 1.15rem;
  color: #2a3548;
  font-weight: 500;
}

.bl-post-content ul,
.bl-post-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #2a3548;
}

.bl-post-content li {
  margin: 0.35rem 0;
  line-height: 1.6;
  font-weight: 500;
}

.bl-post-content a {
  color: var(--bl-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(47, 111, 237, 0.35);
}

.bl-post-content a:hover {
  border-bottom-color: var(--bl-blue);
}

.bl-post-content strong {
  color: var(--bl-ink);
  font-weight: 800;
}

.bl-post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(47, 111, 237, 0.08);
  color: #16356e;
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.bl-post-content pre {
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.15rem;
  overflow-x: auto;
  background: #0f1728;
  color: #e8eefc;
  border-radius: 12px;
  border-top: 2px solid var(--bl-blue);
}

.bl-post-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.bl-post-content blockquote {
  margin: 0 0 1.35rem;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-left: 3px solid var(--bl-blue);
  color: var(--bl-muted);
  font-weight: 600;
}

.bl-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bl-line);
}

.bl-post-tags span {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bl-blue);
  background: var(--bl-soft);
  border-radius: 999px;
}

.bl-post-inline-cta {
  margin-top: 2rem;
  padding: 1.4rem 0 0;
  border-top: 2px solid var(--bl-blue);
}

.bl-post-inline-cta strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--bl-display);
  font-size: 1.35rem;
  color: var(--bl-ink);
}

.bl-post-inline-cta p {
  margin: 0 0 1rem;
  color: var(--bl-muted);
  font-weight: 600;
}

.bl-post-aside {
  display: grid;
  gap: 1.35rem;
  position: sticky;
  top: 96px;
}

.bl-post-aside-block {
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--bl-line);
}

.bl-post-aside-block strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--bl-display);
  font-size: 1.15rem;
  color: var(--bl-ink);
}

.bl-post-aside-block p {
  margin: 0 0 0.55rem;
  color: var(--bl-muted);
  line-height: 1.55;
  font-weight: 600;
  font-size: 0.98rem;
}

.bl-post-aside-block p.small {
  font-size: 0.9rem;
  font-weight: 500;
}

.bl-post-aside-block a:not(.btn) {
  color: var(--bl-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(47, 111, 237, 0.4);
}

.bl-post-aside-block .btn-green {
  margin-top: 0.35rem;
}

.bl-post-final {
  padding: clamp(48px, 7vw, 80px) 0;
  background:
    radial-gradient(640px 260px at 18% 0%, rgba(47, 111, 237, 0.22), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #142033 100%);
  color: #fff;
}

.bl-post-final-inner {
  width: min(1380px, calc(100% - clamp(40px, 6vw, 96px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.bl-post-final .section-kicker {
  display: inline-block !important;
  color: var(--bl-sky) !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem !important;
}

.bl-post-final h2 {
  margin: 0.5rem 0 0.7rem;
  font-family: var(--bl-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  color: #fff !important;
}

.bl-post-final p {
  margin: 0;
  max-width: 34rem;
  color: #d7e4ff !important;
  font-size: 1.08rem;
  line-height: 1.55;
  font-weight: 500;
}

.bl-post-final-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bl-post-final-actions .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .bl-post-layout,
  .bl-post-final-inner {
    grid-template-columns: 1fr;
  }
  .bl-post-aside {
    position: static;
  }
  .bl-post-hero h1 {
    max-width: 16ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-post-hero-media img,
  .bl-post-hero-glow {
    animation: none !important;
  }
}
