/* ShipPlus Group — Blog pages (from Figma "blog-listing-page" 531:400 / "blog-listing-page-mobile" 726:1549 / "blog-article-detail-page" 587:9291 / "blog-article-page-mobile" 726:1411) */

/* ---------- Shared: breadcrumb ---------- */
.bl-breadcrumb {
  background: var(--primary-50);
  padding: 12px 0;
}
.bl-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 18px;
}
.bl-breadcrumb-inner a { color: var(--slate); }
.bl-breadcrumb-inner a:hover { color: var(--teal); }
.bl-breadcrumb-inner .sep { color: #6b7280; }
.bl-breadcrumb-inner .current { color: var(--teal); font-weight: 600; }
.bl-breadcrumb-inner img { width: 14px; height: 14px; }
.bl-crumb-home.m-only { display: none; align-items: center; gap: 8px; }

/* ---------- Listing: hero ---------- */
.bl-hero { padding: 64px 0 40px; text-align: center; }
.bl-hero h1 {
  font-size: 48px;
  line-height: 58px;
  font-weight: 800;
  color: var(--slate);
}
.bl-hero p {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 28px;
  color: #030712;
}

/* ---------- Listing: category filters ---------- */
.bl-filters { border-bottom: 1px solid var(--border-soft); }
.bl-filters-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.bl-tab {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.bl-tab.active {
  color: var(--teal);
  font-weight: 700;
  border-bottom-color: var(--teal);
}

/* ---------- Listing: article grid ---------- */
.bl-grid-wrapper { padding: 40px 0 64px; }
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bl-card {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.bl-card-thumb { height: 220px; }
.bl-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bl-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.bl-card-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: #b5fffa;
  color: var(--slate);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}
.bl-card-date { font-size: 13px; color: #64748b; }
.bl-card h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 24px;
  color: #64748b;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card .link-more { margin-top: 16px; }

/* ---------- Listing: pagination ---------- */
.bl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.bl-page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  font-size: 16px;
  font-weight: 700;
  color: var(--slate);
}
.bl-page-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.bl-page-btn img { width: 16px; height: 16px; }

/* ================= Article Detail ================= */

.ba-header { padding: 48px 0 32px; background: #fff; }
.ba-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: #b5fffa;
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  margin-bottom: 24px;
}
.ba-header h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  color: var(--slate);
  max-width: 900px;
}
.ba-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.ba-author { display: flex; align-items: center; gap: 12px; }
.ba-author img { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; }
.ba-author-name { font-size: 14px; font-weight: 500; color: var(--slate); }
.ba-author-role { font-size: 12px; color: #6b7280; }
.ba-date { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; }
.ba-date img { width: 14px; height: 14px; }

.ba-hero { padding-bottom: 48px; }
.ba-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px;
}

.ba-content { padding-bottom: 64px; }
.ba-content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.ba-body > p {
  font-size: 20px;
  line-height: 32px;
  color: var(--slate);
  margin-bottom: 24px;
}
.ba-body h2 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: var(--slate);
  margin: 40px 0 16px;
}
.ba-body blockquote {
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--navy);
  margin: 32px 0;
}
.ba-body .ba-inline-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin: 32px 0;
}

.ba-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 96px; }
.ba-toc, .ba-share {
  background: #f9fafb;
  border-radius: 16px;
  padding: 24px;
}
.ba-toc h4, .ba-share h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 16px;
}
.ba-toc ol { display: flex; flex-direction: column; gap: 12px; counter-reset: none; }
.ba-toc li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; }
.ba-toc .num { color: #6b7280; }
.ba-toc .label { color: var(--slate); }
.ba-share-icons { display: flex; gap: 12px; }
.ba-share-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}
.ba-share-icons img { width: 18px; height: 18px; }
.ba-share-icons a:nth-child(1) { background: #1877f2; }
.ba-share-icons a:nth-child(2) { background: #1da1f2; }
.ba-share-icons a:nth-child(3) { background: #0077b5; }
.ba-share-icons a:nth-child(4) { background: #333333; }

.ba-cta {
  background: var(--navy-deep);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ba-cta h4 { font-size: 20px; font-weight: 700; color: #fff; }
.ba-cta p { font-size: 16px; line-height: 24px; color: #fff; }
.ba-cta .btn { width: 100%; background: var(--teal); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: 12px; }

.ba-related { padding: 64px 0; background: #f9fafb; }
.ba-related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.ba-related-head .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.ba-related-head h2 { font-size: 40px; line-height: 48px; font-weight: 700; color: var(--slate); margin-top: 8px; }
.ba-related-head .link-more { font-size: 14px; }
.ba-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ba-related-grid .bl-card-body { padding: 16px; }
.ba-related-grid .bl-card-thumb { height: 200px; }
.ba-related-grid h3 { font-size: 20px; line-height: 28px; }
.ba-related-grid p { display: none; }

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  .bl-hero { padding: 40px 0 24px; text-align: left; }
  .bl-hero h1 { font-size: 32px; line-height: 40px; }
  .bl-hero p { margin: 12px 0 0; font-size: 15px; line-height: 22px; }

  .bl-tab { padding: 8px 16px; font-size: 14px; }

  .bl-crumb-home.m-only { display: inline-flex; }

  .bl-grid { grid-template-columns: 1fr; gap: 20px; }
  .bl-card-thumb { height: 180px; }

  .bl-page-btn { width: 36px; height: 36px; font-size: 14px; }

  .ba-header { padding: 24px 0; }
  .ba-header h1 { font-size: 26px; line-height: 34px; }
  .ba-byline { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; }
  .ba-hero { padding-bottom: 24px; }
  .ba-hero img { height: 220px; border-radius: 16px; }
  .ba-content { padding-bottom: 32px; }
  .ba-content-grid { grid-template-columns: 1fr; gap: 24px; }
  .ba-sidebar { position: static; }
  .ba-body > p { font-size: 15px; line-height: 24px; margin-bottom: 16px; }
  .ba-body h2 { font-size: 20px; line-height: 28px; margin: 24px 0 12px; }
  .ba-body blockquote { font-size: 15px; line-height: 22px; padding: 12px 20px; }
  .ba-body .ba-inline-image { height: 180px; margin: 20px 0; border-radius: 12px; }

  .ba-related { padding: 40px 0; }
  .ba-related-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .ba-related-head h2 { font-size: 20px; line-height: 28px; }
  .ba-related-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba-related-grid p { display: -webkit-box; }
}
