/* Blog detail pages - Phase 2 */
.blog-detail-page {
  --article-accent: #53bbed;
  --article-soft: rgba(83, 187, 237, .15);
  --article-glow: rgba(83, 187, 237, .25);
  background: #fff;
}

.blog-ai {
  --article-accent: #b8a7ff;
  --article-soft: rgba(184, 167, 255, .17);
  --article-glow: rgba(184, 167, 255, .24);
}

.blog-erp {
  --article-accent: #53bbed;
  --article-soft: rgba(83, 187, 237, .15);
  --article-glow: rgba(83, 187, 237, .25);
}

.blog-manufacturing {
  --article-accent: #72d7d0;
  --article-soft: rgba(114, 215, 208, .15);
  --article-glow: rgba(114, 215, 208, .22);
}

.blog-automation {
  --article-accent: #f7b955;
  --article-soft: rgba(247, 185, 85, .16);
  --article-glow: rgba(247, 185, 85, .22);
}

.blog-transformation {
  --article-accent: #6ee7bd;
  --article-soft: rgba(110, 231, 189, .15);
  --article-glow: rgba(110, 231, 189, .22);
}

.article-detail-hero {
  position: relative;
  min-height: 88svh;
  padding: 145px 0 76px;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at 15% 18%, var(--article-glow), transparent 30%), linear-gradient(145deg, #02050c, #07111f 58%, #0b1d32);
}

.article-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .034) 1px, transparent 1px);
  background-size: 100% 56px;
  mask-image: linear-gradient(#000, rgba(0, 0, 0, .36));
  pointer-events: none;
}

.article-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr);
  gap: 60px;
  align-items: center;
}

.article-hero-copy h1 {
  max-width: 960px;
  font-size: clamp(3rem, 5.8vw, 5.9rem);
  line-height: .96;
}

.article-hero-copy > p {
  max-width: 720px;
  margin: 24px 0 28px;
  color: rgba(255, 255, 255, .64);
  font-size: 18px;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
}

.article-meta-line span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  color: #aebdca;
  background: rgba(255, 255, 255, .04);
  font: 800 9px "JetBrains Mono";
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-hero-side {
  display: grid;
  gap: 18px;
  align-self: end;
}

.article-hero-media {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 420px;
  max-height: 265px;
  justify-self: end;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--article-soft);
  border-radius: 30px;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.article-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-brief {
  padding: 29px;
  border: 1px solid var(--article-soft);
  border-radius: 28px;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.article-brief span {
  display: block;
  margin-bottom: 44px;
  color: var(--article-accent);
  font: 800 10px "JetBrains Mono";
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-brief h2 {
  font-size: 32px;
  margin-bottom: 13px;
}

.article-brief p {
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.article-body-section {
  padding: 104px 0;
}

.article-body-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 70px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 110px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}

.article-sidebar span {
  display: block;
  margin-bottom: 17px;
  color: #98a3b1;
  font: 800 9px "JetBrains Mono";
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-sidebar a {
  display: block;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: #526174;
  font-size: 12px;
  font-weight: 800;
}

.article-content {
  max-width: 850px;
}

.article-content h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.article-content h3 {
  margin: 46px 0 12px;
  font-size: 27px;
}

.article-content p {
  margin: 0 0 18px;
  color: #526174;
  font-size: 16px;
  line-height: 1.75;
}

.article-content ul {
  display: grid;
  gap: 11px;
  margin: 20px 0 32px;
}

.article-content li {
  padding: 14px 16px;
  border-left: 3px solid var(--article-accent);
  color: #526174;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
}

.article-callout {
  margin: 34px 0;
  padding: 26px;
  border: 1px solid var(--article-soft);
  border-radius: 22px;
  background: linear-gradient(135deg, #f7fbfd, #fff);
}

.article-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 18px;
}

.related-strip {
  padding: 90px 0;
  color: #fff;
  background: linear-gradient(145deg, #03050d, #091426);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.related-grid a {
  min-height: 282px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, .045);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.related-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 187, 237, .35);
  background: rgba(255, 255, 255, .07);
}

.related-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
}

.related-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--article-accent);
  font-size: 28px;
}

.related-card-meta {
  display: block;
  margin: 18px 22px 16px;
  color: var(--article-accent);
  font: 800 9px "JetBrains Mono";
  letter-spacing: .1em;
  text-transform: uppercase;
}

.related-grid strong {
  display: block;
  padding: 0 22px 24px;
  font-size: 18px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .article-hero-layout,
  .article-body-layout {
    grid-template-columns: 1fr;
  }

  .article-hero-side {
    align-self: stretch;
  }

  .article-hero-media {
    justify-self: start;
  }

  .article-sidebar {
    position: relative;
    top: auto;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .article-detail-hero {
    min-height: auto;
    padding-top: 125px;
  }

  .article-hero-copy h1 {
    font-size: 2.8rem;
  }

  .article-hero-copy > p {
    font-size: 15px;
  }

  .article-brief {
    padding: 23px;
  }

  .article-body-section {
    padding: 78px 0;
  }
}
