* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--pc-ink);
  background: var(--pc-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.blog-nav-link[aria-current="page"] { color: var(--pc-accent); }

.blog-hero {
  min-height: 480px;
  display: grid;
  align-items: center;
  padding: 72px max(24px, calc((100vw - 1120px) / 2));
  color: #fff;
  background-color: #171329;
  background-image:
    linear-gradient(90deg, rgba(12, 15, 30, .96), rgba(34, 25, 68, .88) 55%, rgba(55, 36, 105, .72)),
    url("../../Bgedit/editor.png");
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid rgba(196, 181, 253, .24);
}

.blog-hero-inner { width: min(720px, 100%); }

.blog-eyebrow,
.article-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  color: #ede9fe;
  background: rgba(15, 12, 32, .34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 700px;
  margin: 18px 0 16px;
  color: #fff !important;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .34);
}

.blog-hero p {
  max-width: 650px;
  margin: 0;
  color: #e8e7f3 !important;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.blog-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.blog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 34px;
}

.blog-search {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--pc-line);
  border-radius: 14px;
  color: var(--pc-muted);
  background: var(--pc-panel);
  box-shadow: 0 10px 30px rgba(58, 35, 96, .06);
}

.blog-search svg { width: 20px; height: 20px; flex: none; }

.blog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--pc-ink);
  background: transparent;
  font: inherit;
}

.blog-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.blog-filter {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  color: var(--pc-muted);
  background: var(--pc-panel);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.blog-filter.active {
  color: #fff !important;
  border-color: transparent !important;
  background: var(--pc-accent-strong) !important;
  box-shadow: 0 10px 24px rgba(109, 40, 217, .22) !important;
}

.blog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.blog-section-head h2 { margin: 0; font-size: clamp(26px, 4vw, 34px); }
.blog-section-head p { margin: 0; color: var(--pc-muted); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-panel);
  box-shadow: var(--pc-shadow);
  transition: transform var(--pc-transition), border-color var(--pc-transition), box-shadow var(--pc-transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, .4);
  box-shadow: 0 24px 64px rgba(58, 35, 96, .14);
}

.blog-card[hidden] { display: none; }

.blog-card-media {
  height: 248px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--pc-panel-soft);
}

.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-media.contain img { padding: 20px; object-fit: contain; }

.blog-card-body { padding: 24px; }

.blog-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--pc-muted);
  font-size: 12px;
  font-weight: 700;
}

.blog-card-category { color: var(--pc-accent); }

.blog-card h2 {
  margin: 12px 0 10px;
  color: var(--pc-ink);
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.22;
}

.blog-card p { margin: 0 0 18px; color: var(--pc-muted); line-height: 1.7; }

.blog-card-link,
.article-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pc-accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.blog-card-link::after { content: "\2192"; font-size: 18px; }

.blog-empty {
  margin: 28px 0 0;
  padding: 28px;
  border: 1px dashed var(--pc-line);
  border-radius: var(--pc-radius-lg);
  color: var(--pc-muted);
  text-align: center;
  background: var(--pc-panel-soft);
}

.blog-empty[hidden] { display: none; }

.newsletter-band {
  margin-top: 58px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-panel-soft);
}

.newsletter-band h2 { margin: 0 0 8px; font-size: 25px; }
.newsletter-band p { max-width: 660px; margin: 0; color: var(--pc-muted); line-height: 1.65; }

.article-header {
  padding: 62px 24px 42px;
  color: #fff;
  text-align: center;
  background: #171329;
}

.article-header .article-kicker { margin-bottom: 16px; }

.article-header h1 {
  max-width: 900px;
  margin: 0 auto 18px;
  color: #fff !important;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.06;
}

.article-header > p { max-width: 760px; margin: 0 auto 20px; color: #ddd6fe !important; font-size: 18px; line-height: 1.7; }
.article-header .article-meta { justify-content: center; color: #c4b5fd; }

.article-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(230px, 1fr);
  gap: 48px;
  align-items: start;
}

.article-cover {
  width: 100%;
  max-height: 510px;
  margin: 0 0 34px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-panel-soft);
  box-shadow: var(--pc-shadow);
}

.article-cover.contain { padding: 22px; object-fit: contain; }

.article-content { min-width: 0; }
.article-content h2 { margin: 38px 0 12px; color: var(--pc-ink); font-size: clamp(25px, 4vw, 32px); line-height: 1.2; }
.article-content h3 { margin: 28px 0 10px; color: var(--pc-ink); font-size: 20px; }
.article-content p,
.article-content li { color: var(--pc-muted); font-size: 16px; line-height: 1.8; }
.article-content p { margin: 0 0 18px; }
.article-content ol,
.article-content ul { padding-left: 24px; }
.article-content a { color: var(--pc-accent-strong); font-weight: 700; }
.article-content strong { color: var(--pc-ink); }

.article-callout {
  margin: 30px 0;
  padding: 22px;
  border-left: 4px solid var(--pc-accent);
  border-radius: 0 var(--pc-radius-md) var(--pc-radius-md) 0;
  background: var(--pc-accent-soft);
}

.article-callout p { margin: 0; color: var(--pc-ink); }

.article-aside {
  position: sticky;
  top: 94px;
  padding: 22px;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  background: var(--pc-panel);
  box-shadow: var(--pc-shadow);
}

.article-aside h2 { margin: 0 0 12px; font-size: 18px; }
.article-aside p { margin: 0 0 18px; color: var(--pc-muted); font-size: 14px; line-height: 1.65; }
.article-aside .primary-action { width: 100%; text-decoration: none; }

.related-list { display: grid; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--pc-line); }
.related-list h3 { margin: 0 0 4px; font-size: 14px; }
.related-list a { color: var(--pc-muted); font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.related-list a:hover { color: var(--pc-accent); }

@media (max-width: 860px) {
  .blog-toolbar { grid-template-columns: 1fr; }
  .blog-filters { justify-content: flex-start; }
  .article-main { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 680px) {
  .blog-hero { min-height: 420px; padding-top: 56px; padding-bottom: 56px; background-position: 58% center; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-media { height: 220px; }
  .blog-section-head, .newsletter-band { align-items: flex-start; flex-direction: column; }
  .newsletter-band { padding: 24px; }
  .article-header { padding-top: 50px; }
}

