/* =========================================================
   BLOG — Listing + Article
   ========================================================= */

/* Hero (shared between listing + article) */
.blog-hero {
  position: relative;
  padding: 140px 0 70px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(155, 48, 212, 0.30), transparent 60%),
    radial-gradient(ellipse 55% 50% at 20% 50%, rgba(42, 48, 232, 0.25), transparent 60%),
    linear-gradient(180deg, #0a0a1f 0%, #14102e 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.blog-hero > .container { position: relative; z-index: 2; }
.blog-hero-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blog-glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.blog-glow-1 { top: -120px; right: -80px; background: radial-gradient(circle, rgba(155, 48, 212, 0.6), transparent 65%); animation: blogGlowDrift 14s ease-in-out infinite alternate; }
.blog-glow-2 { bottom: -140px; left: -60px; background: radial-gradient(circle, rgba(91, 109, 255, 0.55), transparent 65%); animation: blogGlowDrift 16s ease-in-out infinite alternate-reverse; }
@keyframes blogGlowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}
.blog-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black, transparent 80%);
}

.blog-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #b9a8ff;
  background: rgba(155, 48, 212, 0.18);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.blog-hero-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: #ffffff;
  max-width: 880px;
}
.blog-hero-sub {
  font-size: 17px;
  color: #b3aedc;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

/* Article-hero variant */
.blog-article-hero { padding: 130px 0 60px; }
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.blog-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color .2s ease; }
.blog-breadcrumb a:hover { color: #fff; }

.blog-article-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: #ffffff;
  margin: 0 0 22px;
  max-width: 880px;
}
.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
}
.blog-author { font-weight: 600; color: #d9d2ff; }

.blog-meta-dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

/* Listing — cards */
.blog-list { background: #f6f8fc; padding: 72px 0 96px; }

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 109, 255, 0.40);
  box-shadow: 0 24px 50px rgba(91, 109, 255, 0.18);
  color: inherit;
  text-decoration: none;
}

.blog-card-featured { flex-direction: row; align-items: stretch; }
.blog-card-featured .blog-card-media { flex: 0 0 46%; min-height: 320px; }
.blog-card-featured .blog-card-body { flex: 1; padding: 38px 42px; display: flex; flex-direction: column; justify-content: center; }
.blog-card-featured .blog-card-title { font-size: 30px; }
@media (max-width: 991px) {
  .blog-card-featured { flex-direction: column; }
  .blog-card-featured .blog-card-media { min-height: 220px; }
  .blog-card-featured .blog-card-body { padding: 28px 24px; }
  .blog-card-featured .blog-card-title { font-size: 24px; }
}

.blog-card-media {
  position: relative;
  background: linear-gradient(135deg, #2a30e8 0%, #6438dd 50%, #9b30d4 100%);
  overflow: hidden;
}
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.blog-card:hover .blog-card-image { transform: scale(1.04); }
.blog-card-media-sm { min-height: 180px; }
.blog-card-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.blog-card-art-pink   { background: linear-gradient(135deg, #ec3b7a, #9b30d4); }
.blog-card-art-blue   { background: linear-gradient(135deg, #2a30e8, #5b6dff); }
.blog-card-art-violet { background: linear-gradient(135deg, #6438dd, #c062e5); }

.bca-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
}
.bca-orb-1 { width: 220px; height: 220px; top: -50px; left: -40px; background: rgba(255,255,255,0.28); animation: bcaOrbDrift 8s ease-in-out infinite alternate; }
.bca-orb-2 { width: 180px; height: 180px; bottom: -40px; right: -30px; background: rgba(91, 109, 255, 0.45); animation: bcaOrbDrift 10s ease-in-out infinite alternate-reverse; }
.bca-orb-3 { width: 140px; height: 140px; top: 40%; right: 25%; background: rgba(192, 98, 229, 0.40); animation: bcaOrbDrift 12s ease-in-out infinite alternate; }
@keyframes bcaOrbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}
.bca-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 75%);
}
.bca-mark {
  position: relative;
  z-index: 1;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 96px;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.blog-card-featured .bca-mark { font-size: 140px; }

.blog-card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6438dd;
  background: rgba(100, 56, 221, 0.10);
  padding: 4px 10px;
  border-radius: 100px;
}
.blog-card-placeholder .blog-tag {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
}
.blog-card-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.2px;
  color: var(--text);
  margin: 0 0 10px;
}
.blog-card-excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 18px;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--primary);
  transition: gap .25s ease, color .25s ease;
}
.blog-card-cta svg { width: 18px; height: 18px; transition: transform .25s ease; }
.blog-card:hover .blog-card-cta { gap: 12px; color: #9b30d4; }
.blog-card:hover .blog-card-cta svg { transform: translateX(2px); }

.blog-card-placeholder { opacity: 0.82; cursor: default; }
.blog-card-placeholder:hover { transform: none; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); border-color: rgba(15, 23, 42, 0.06); }

/* Article body */
.blog-article {
  padding: 56px 0 100px;
  background: #ffffff;
}
.blog-article-hero-image {
  max-width: 980px;
  margin: 0 auto 56px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #2a30e8 0%, #6438dd 50%, #9b30d4 100%);
  aspect-ratio: 16 / 9;
}
.blog-article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  .blog-article-hero-image { margin-bottom: 32px; border-radius: 16px; aspect-ratio: 16 / 10; }
}
.blog-article-body {
  max-width: 960px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a3a;
}
.blog-article-body p {
  margin: 0 0 22px;
}
.blog-article-body p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: #1a1a2e;
  font-weight: 500;
}
.blog-article-body .blog-h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 44px 0 18px;
}
.blog-tagline-lead {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
  background: linear-gradient(95deg, #2a30e8 0%, #9b30d4 50%, #c062e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 22px;
}
.blog-pullquote {
  margin: 28px 0;
  padding: 18px 26px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #2a30e8, #9b30d4) 1;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #14102e;
  background: linear-gradient(90deg, rgba(100, 56, 221, 0.06), transparent 80%);
}

.blog-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0 36px;
}
@media (max-width: 720px) {
  .blog-products { grid-template-columns: 1fr; }
}
.blog-product {
  display: flex;
  gap: 16px;
  padding: 22px 22px;
  background: #f9f8ff;
  border: 1px solid rgba(100, 56, 221, 0.10);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.blog-product:hover {
  transform: translateY(-3px);
  border-color: rgba(100, 56, 221, 0.40);
  box-shadow: 0 14px 30px rgba(100, 56, 221, 0.18);
  color: inherit;
  text-decoration: none;
}
.blog-product-icon {
  font-size: 26px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2a30e8, #9b30d4);
  color: #fff;
}
.blog-product-body strong {
  display: block;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.blog-product-body p {
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.blog-article-cta {
  max-width: 760px;
  margin: 56px auto 36px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0a0a1f 0%, #14102e 100%);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(10, 10, 31, 0.25);
}
.blog-cta-copy h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}
.blog-cta-copy p {
  margin: 0;
  color: #b3aedc;
  font-size: 14.5px;
  max-width: 460px;
}

.blog-back {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.blog-back:hover { color: #9b30d4; }

/* =========================================================
   Editor-generated content (Quill output) — matches the
   styling of the hand-built article above, for plain tags.
   ========================================================= */
.blog-article-body h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
  margin: 44px 0 18px;
}
.blog-article-body h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.2px;
  color: var(--text);
  margin: 34px 0 14px;
}
.blog-article-body blockquote {
  margin: 28px 0;
  padding: 18px 26px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #2a30e8, #9b30d4) 1;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #14102e;
  background: linear-gradient(90deg, rgba(100, 56, 221, 0.06), transparent 80%);
}
.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 22px;
  padding-left: 26px;
}
.blog-article-body li { margin-bottom: 10px; }
.blog-article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.blog-article-body a:hover { color: #9b30d4; }
.blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 14px 0 26px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.blog-article-body strong { font-weight: 700; color: #1a1a2e; }
.blog-article-body pre {
  background: #0f1020;
  color: #e7e7f5;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  margin: 0 0 22px;
}
.blog-article-body hr { border: none; border-top: 1px solid #e6e8f0; margin: 36px 0; }

@media (max-width: 720px) {
  .blog-article-body h2 { font-size: 24px; margin-top: 32px; }
  .blog-article-body h3 { font-size: 20px; }
  .blog-article-body blockquote { font-size: 18px; padding: 14px 18px; }
}

/* =========================================================
   Tags + tag filter bar + related articles
   ========================================================= */

/* Tag filter bar on the listing */
.blog-tagbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.blog-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 7px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .2s ease;
}
.blog-tag-chip:hover {
  color: #6438dd;
  border-color: rgba(100, 56, 221, 0.45);
  box-shadow: 0 6px 16px rgba(100, 56, 221, 0.12);
  text-decoration: none;
}
.blog-tag-chip.is-active {
  color: #fff;
  background: linear-gradient(120deg, #2a30e8 0%, #6438dd 50%, #9b30d4 100%);
  border-color: transparent;
}
.blog-tag-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.75;
}

/* Tags shown on listing cards (non-clickable, inside card link) */
.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.blog-card-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #6438dd;
  background: rgba(100, 56, 221, 0.08);
  padding: 3px 9px;
  border-radius: 100px;
}

/* Tags under an article */
.blog-article-tags {
  max-width: 960px;
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid #eef0f6;
}
.blog-tags-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-right: 4px;
}
.blog-article-tags .blog-tag-chip {
  background: #f6f8fc;
}

/* Related articles section */
.blog-related {
  background: #f6f8fc;
  padding: 64px 0 90px;
  border-top: 1px solid #eef0f6;
}
.blog-related-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text);
  margin: 0 0 30px;
}
@media (max-width: 720px) {
  .blog-related { padding: 48px 0 64px; }
  .blog-related-title { font-size: 24px; }
}

@media (max-width: 720px) {
  .blog-hero { padding: 110px 0 50px; }
  .blog-hero-title { font-size: 36px; }
  .blog-article-hero { padding: 110px 0 44px; }
  .blog-article-title { font-size: 30px; }
  .blog-article-body { font-size: 16px; }
  .blog-article-body p:first-of-type { font-size: 17.5px; }
  .blog-article-body .blog-h2 { font-size: 24px; margin-top: 32px; }
  .blog-pullquote { font-size: 18px; padding: 14px 18px; }
  .blog-tagline-lead { font-size: 18px; }
  .blog-article-cta { padding: 24px 22px; }
  .blog-cta-copy h3 { font-size: 20px; }
}
