/* 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); }

/* ── Blog layout + sidebar ─────────────────────────────────────────────── */
.blog-body { padding: 32px 0 64px; }
.blog-body > .container { max-width: 1280px; }

.blog-search-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.blog-search-banner span b { color: var(--brand); font-weight: 700; }

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}
.blog-sidebar-framed {
  border: 2px solid var(--brand);
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(3, 42, 159, 0.06) 0%, rgba(255, 255, 255, 0) 140px),
    #fff;
  box-shadow:
    0 0 0 1px rgba(3, 42, 159, 0.06),
    0 10px 28px rgba(3, 42, 159, 0.12);
}
.blog-sidebar-framed .blog-side-card {
  border-color: rgba(3, 42, 159, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.blog-sidebar-framed .blog-side-head {
  border-bottom-color: rgba(3, 42, 159, 0.12);
}
.blog-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.blog-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.blog-side-head h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.blog-side-reset {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.blog-side-search {
  position: relative;
  padding: 14px 16px 16px;
}
.blog-side-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0 44px 0 14px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.blog-side-search input:focus { border-color: var(--brand); }
.blog-side-search-btn {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(calc(-50% - 1px));
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s, transform .12s;
}
.blog-side-search-btn:hover { background: var(--brand-ink); transform: translateY(calc(-50% - 2px)); }

.blog-side-cats {
  list-style: none;
  margin: 0;
  padding: 8px 10px 12px;
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow: auto;
}
.blog-side-cats::-webkit-scrollbar { width: 4px; }
.blog-side-cats::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }
.blog-side-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  transition: background .12s, color .12s;
}
.blog-side-cat:hover { background: var(--bg-soft); color: var(--brand); }
.blog-side-cat.on {
  background: var(--bg-soft);
  color: var(--brand);
  font-weight: 600;
}
.blog-side-cat-count {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.blog-side-cat.on .blog-side-cat-count { color: var(--brand); opacity: .75; }

.blog-side-recent {
  list-style: none;
  margin: 0;
  padding: 6px 10px 12px;
  display: grid;
  gap: 2px;
}
.blog-side-recent-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .12s;
}
.blog-side-recent-link:hover { background: var(--bg-soft); }
.blog-side-recent-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid rgba(3, 42, 159, 0.12);
  display: grid;
  place-items: center;
  color: var(--brand);
  opacity: .7;
}
.blog-side-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-side-recent-thumb-slot {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.blog-side-recent-text {
  min-width: 0;
  flex: 1;
}
.blog-side-recent-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 4px;
}
.blog-side-recent-link:hover .blog-side-recent-title { color: var(--brand); }
.blog-side-recent-meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.blog-side-newsletter,
.blog-side-catalog {
  padding: 0 0 16px;
}
.blog-side-newsletter-sub,
.blog-side-catalog-sub {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.blog-side-newsletter-btn,
.blog-side-catalog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 18px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.blog-side-newsletter-btn:hover,
.blog-side-catalog-btn:hover {
  background: var(--brand-ink);
  color: #fff;
  transform: translateY(-1px);
}
.blog-side-newsletter-note {
  margin: 10px 0 0;
  padding: 0 18px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.45;
}
.blog-side-catalog-btn {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--line-2);
}
.blog-side-catalog-btn:hover {
  background: var(--bg-soft);
  color: var(--brand);
  border-color: var(--brand);
}

/* ── Featured article (hero card) ─────────────────────────────────────── */
.blog-featured {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  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(3,42,159,.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(3,42,159,.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-body-section {
  padding: 0 0 56px;
}
.article-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
  max-width: 1180px;
  padding-top: 32px;
}
.article-main {
  min-width: 0;
  max-width: 740px;
}
.article-back {
  margin-top: 28px;
}
.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: 0 auto 28px;
  max-width: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brand); opacity: .9;
  position: relative;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-cover .slot {
  width: 36%; height: 56%;
  border-radius: 14px;
  border: 2px dashed var(--line-2);
  background: repeating-linear-gradient(135deg, rgba(3,42,159,.05) 0 10px, transparent 10px 20px);
  display: grid; place-items: center;
}

/* Body */
.article-content,
.article-body {
  padding: 0;
}
.article-content h2,
.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-content p,
.article-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.article-content p strong,
.article-body p strong { color: var(--brand); font-weight: 700; }
.article-content ul,
.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-content ul li,
.article-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.article-content ul li::before,
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand);
}
.article-content ul li strong,
.article-body ul li strong { color: var(--brand); font-weight: 700; }
.article-content a,
.article-body a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-content a:hover,
.article-body a:hover { color: var(--brand-ink); }
.article-content ol,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 1.4rem;
  display: grid;
  gap: 10px;
}
.article-content ol li,
.article-body ol li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
}
.article-content h3,
.article-body h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 20px;
  color: var(--ink);
  font-weight: 600;
  margin: 24px 0 12px;
}
.article-content blockquote,
.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);
  flex-shrink: 0;
}
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.share-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.share-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* 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) {
  .article-page-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 740px;
  }
  .article-main { max-width: none; }
  .blog-sidebar { position: static; }
  .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; }
  .blog-side-cats { max-height: none; }
  .blog-sidebar-framed { padding: 12px; }
  .blog-side-recent-thumb { width: 48px; height: 48px; }
  .article-cover { max-height: 220px; }
  .article-content p,
  .article-body p { font-size: 15.5px; }
  .article-content h2,
  .article-body h2 { font-size: 21px; }
}
