/* Blog list + Article detail */

/* ── Blog hero ─────────────────────────────────────────────────────────── */
.blog-hero {
  background: var(--bg-soft);
  padding: 22px 0 28px;
}
.blog-hero .container { max-width: 1280px; }
.blog-hero-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(30px, 3.6vw, 44px);
  color: var(--brand);
  margin: 8px 0 8px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.blog-hero-sub {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 70ch;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.blog-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 4px;
}
.blog-chip {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.blog-chip:hover { color: var(--brand); border-color: var(--brand); }
.blog-chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Featured article (hero card) ─────────────────────────────────────── */
.blog-featured {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-top: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.blog-featured:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.blog-featured-img {
  background: var(--bg-soft);
  min-height: 340px;
  position: relative;
  display: grid; place-items: center;
  color: var(--brand); opacity: .55;
}
.blog-featured-img .slot {
  width: 50%; height: 60%;
  border-radius: 14px;
  border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, rgba(14,58,135,.05) 0 10px, transparent 10px 20px);
}
.blog-featured-tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.blog-featured-body {
  padding: 36px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-featured-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
.blog-featured-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  margin: 10px 0 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.blog-featured-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
  text-wrap: pretty;
}
.blog-featured-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--muted);
  font-size: 13px;
}
.blog-featured-meta a {
  color: var(--brand);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── Article cards grid ────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s, border-color .15s;
}
.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--line-2);
}
.blog-card-img {
  background: var(--bg-soft);
  aspect-ratio: 16/9;
  position: relative;
  display: grid; place-items: center;
  color: var(--brand); opacity: .55;
}
.blog-card-img .slot {
  width: 50%; height: 50%;
  border-radius: 12px;
  border: 1.5px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, rgba(14,58,135,.05) 0 10px, transparent 10px 20px);
}
.blog-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.95);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.blog-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-meta {
  display: flex; gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.blog-card-meta span + span::before { content: "·"; padding-right: 8px; opacity: .5; }
.blog-card-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.blog-card-excerpt {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-readmore {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* ── Article detail page ──────────────────────────────────────────────── */
.article-hero {
  background: var(--bg-soft);
  padding: 24px 0 32px;
}
.article-back {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px;
}
.article-back:hover { text-decoration: underline; }
.article-tag-pill {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.article-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -.015em;
  max-width: 26ch;
  text-wrap: balance;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.article-meta b { color: var(--ink); font-weight: 600; }
.article-meta span + span::before { content: ""; padding-left: 0; }
.article-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.article-cover {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/8;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand); opacity: .9;
  position: relative;
}
.article-cover .slot {
  width: 30%; height: 50%;
  border-radius: 14px;
  border: 2px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, rgba(14,58,135,.05) 0 10px, transparent 10px 20px);
  display: grid; place-items: center;
}

/* Body */
.article-body {
  padding: 40px 0 56px;
}
.article-body .container { max-width: 740px; }
.article-body h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 24px;
  color: var(--brand);
  font-weight: 600;
  margin: 32px 0 14px;
  letter-spacing: -.005em;
}
.article-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.article-body p strong { color: var(--brand); font-weight: 700; }
.article-body ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 22px 26px;
  background: var(--bg-soft);
  border-radius: 14px;
  display: grid;
  gap: 12px;
}
.article-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand);
}
.article-body ul li strong { color: var(--brand); font-weight: 700; }
.article-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 8px 0 8px 22px;
  margin: 28px 0;
  font-family: "Poppins", sans-serif;
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}

/* Share row */
.article-share {
  margin: 32px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.share-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.share-buttons { display: flex; gap: 8px; }
.share-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.share-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Related articles */
.article-related {
  padding: 32px 0 56px;
  background: var(--bg-softer);
}
.article-related .container { max-width: 1100px; }
.article-related h3 {
  font-family: "Poppins", sans-serif;
  font-size: 22px; font-weight: 600;
  color: var(--brand);
  margin: 0 0 22px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Pagination */
.blog-pagination { display: flex; justify-content: center; margin-top: 36px; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-body { padding: 24px 20px; }
  .blog-featured-img { min-height: 240px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .article-body p { font-size: 15.5px; }
  .article-body h2 { font-size: 21px; }
}
