/* =========================================================
   diffonlinetool — Blog Page Stylesheet
   File: public/css/blog.css
   ========================================================= */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --surf:       #ffffff;
  --surf2:      #f9f8f5;
  --surf3:      #f1f4fc;
  --border:     1px solid #e2e5ef;
  --border-c:   #e2e5ef;
  --text:       #1a1917;
  --text2:      #4b4f61;
  --text3:      #8a8ea8;
  --accent:     #2563eb;
  --accentH:    #1d4ed8;
  --accent2:    #0ea5e9;
  --green:      #16a34a;
  --orange:     #ea580c;
  --purple:     #7c3aed;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-xs:  6px;
  --shadow:     0 2px 12px rgba(37,99,235,.07);
  --shadow-md:  0 8px 32px rgba(37,99,235,.11);
  --shadow-lg:  0 16px 48px rgba(37,99,235,.14);
}

html { scroll-behavior: smooth; }

/* =========================================================
   HERO
   ========================================================= */
.bl-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: 0 0 24px 24px;
  padding: 64px 20px 52px;
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 500px at 60% 40%, rgba(14,165,233,.12) 0%, transparent 65%);
  pointer-events: none;
}

.bl-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.bl-hero-content { display: flex; flex-direction: column; gap: 16px; }

.bl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  width: fit-content;
}

.bl-badge svg {
  width: 12px; height: 12px;
  stroke: #7dd3fc; stroke-width: 2; fill: none;
}

.bl-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.03em;
  color: #f8fafc;
  margin: 0;
}

.bl-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
  background-clip: text;
}

.bl-hero p {
  font-size: 1rem;
  color: #dbeafe;
  line-height: 1.75;
  max-width: 580px;
  margin: 0;
}

.bl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.bl-hero-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #93c5fd;
  font-weight: 500;
}

.bl-hero-stat svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 1.8; fill: none;
}

.bl-hero-divider {
  width: 1px; height: 14px;
  background: rgba(255,255,255,.2);
}

.bl-hero-search {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 0;
}

.bl-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 0 14px;
  gap: 10px;
  min-width: 260px;
}

.bl-search-wrap svg {
  width: 15px; height: 15px;
  stroke: #93c5fd; stroke-width: 2; fill: none;
  flex-shrink: 0;
}

.bl-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 14px;
  padding: 12px 0;
  width: 100%;
  font-family: inherit;
}

.bl-search-wrap input::placeholder { color: #64748b; }

/* =========================================================
   MAIN LAYOUT
   ========================================================= */
.bl-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* =========================================================
   FEATURED POST (HERO CARD)
   ========================================================= */
.bl-featured {
  margin-bottom: 48px;
}

.bl-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.bl-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-c);
}

.bl-featured-card {
  background: var(--surf);
  border: var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  transition: box-shadow .2s, transform .18s;
}

.bl-featured-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bl-featured-img {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bl-featured-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,.3);
}

.bl-featured-img-placeholder svg {
  width: 56px; height: 56px;
  stroke: rgba(255,255,255,.25); stroke-width: 1.2; fill: none;
}

.bl-featured-img-placeholder span {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.2);
}

/* If real image is used: */
.bl-featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.bl-featured-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.bl-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  width: fit-content;
}

.bl-tag.blue   { background: #dbeafe; color: #1d4ed8; }
.bl-tag.green  { background: #dcfce7; color: #15803d; }
.bl-tag.sky    { background: #e0f2fe; color: #0369a1; }
.bl-tag.orange { background: #ffedd5; color: #c2410c; }
.bl-tag.purple { background: #ede9fe; color: #6d28d9; }
.bl-tag.gray   { background: #f1f5f9; color: #475569; }

.bl-featured-badge {
  background: linear-gradient(90deg, #dbeafe, #e0f2fe);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: .06em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 4px;
}

.bl-featured-body h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.bl-featured-body p {
  font-size: 14.5px;
  color: var(--text2);
  line-height: 1.7;
}

.bl-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
}

.bl-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bl-post-meta svg {
  width: 12px; height: 12px;
  stroke: currentColor; stroke-width: 2; fill: none;
}

.bl-read-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
  text-decoration: none;
  transition: gap .15s;
}

.bl-read-more:hover { gap: 11px; }

.bl-read-more svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2.2; fill: none;
  transition: transform .15s;
}

.bl-read-more:hover svg { transform: translateX(3px); }

/* =========================================================
   POSTS GRID
   ========================================================= */
.bl-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bl-grid-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

.bl-grid-count {
  font-size: 12.5px;
  color: var(--text3);
}

.bl-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bl-post-card {
  background: var(--surf);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color .16s, box-shadow .18s, transform .18s;
}

.bl-post-card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bl-post-thumb {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Color variants for placeholder thumbs */
.bl-post-thumb.v1 { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.bl-post-thumb.v2 { background: linear-gradient(135deg, #dcfce7, #bbf7d0); }
.bl-post-thumb.v3 { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.bl-post-thumb.v4 { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.bl-post-thumb.v5 { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.bl-post-thumb.v6 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }

.bl-post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.bl-post-thumb-icon {
  width: 44px; height: 44px;
  opacity: .35;
}

.bl-post-thumb-icon svg {
  width: 100%; height: 100%;
  stroke-width: 1.2; fill: none;
}

.bl-post-thumb.v1 .bl-post-thumb-icon svg { stroke: #1d4ed8; }
.bl-post-thumb.v2 .bl-post-thumb-icon svg { stroke: #15803d; }
.bl-post-thumb.v3 .bl-post-thumb-icon svg { stroke: #92400e; }
.bl-post-thumb.v4 .bl-post-thumb-icon svg { stroke: #6d28d9; }
.bl-post-thumb.v5 .bl-post-thumb-icon svg { stroke: #b91c1c; }
.bl-post-thumb.v6 .bl-post-thumb-icon svg { stroke: #0369a1; }

.bl-post-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bl-post-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
}

.bl-post-body p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

.bl-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: var(--border);
}

.bl-post-footer-meta {
  font-size: 12px;
  color: var(--text3);
}

.bl-post-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surf3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}

.bl-post-card:hover .bl-post-arrow { background: #dbeafe; }

.bl-post-arrow svg {
  width: 12px; height: 12px;
  stroke: var(--accent); stroke-width: 2.2; fill: none;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: var(--border);
}

.bl-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  border: var(--border);
  background: var(--surf);
  transition: background .14s, color .14s, border-color .14s;
}

.bl-page-btn:hover {
  background: var(--surf3);
  color: var(--accent);
  border-color: rgba(37,99,235,.3);
}

.bl-page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.bl-page-btn.icon svg {
  width: 14px; height: 14px;
  stroke: currentColor; stroke-width: 2.2; fill: none;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.bl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 70px;
}

.bl-widget {
  background: var(--surf);
  border: var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.bl-widget-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: var(--border);
}

/* Popular posts widget */
.bl-popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bl-popular-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  transition: opacity .15s;
}

.bl-popular-item:hover { opacity: .75; }

.bl-popular-num {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--surf3);
  color: var(--text3);
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.bl-popular-item:first-child .bl-popular-num {
  background: #dbeafe; color: var(--accent);
}

.bl-popular-info { flex: 1; min-width: 0; }

.bl-popular-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-popular-meta {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: 3px;
}

/* Categories widget */
.bl-cat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bl-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  transition: background .14s, color .14s;
}

.bl-cat-item:hover {
  background: var(--surf3);
  color: var(--accent);
}

.bl-cat-item-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  background: var(--surf3);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Newsletter widget */
.bl-newsletter-widget {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
}

.bl-newsletter-widget .bl-widget-title { color: #1e40af; border-color: #bfdbfe; }

.bl-newsletter-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.bl-newsletter-form { display: flex; flex-direction: column; gap: 8px; }

.bl-newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  outline: none;
  color: var(--text);
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.bl-newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.bl-newsletter-form input[type="email"]::placeholder { color: var(--text3); }

.bl-newsletter-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}

.bl-newsletter-btn:hover { background: var(--accentH); }

.bl-newsletter-note {
  font-size: 11px;
  color: var(--text3);
  text-align: center;
}

/* Tags widget */
.bl-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bl-tag-link {
  display: inline-block;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  background: var(--surf2);
  border: var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: background .14s, color .14s, border-color .14s;
}

.bl-tag-link:hover {
  background: #dbeafe;
  color: var(--accent);
  border-color: #bfdbfe;
}

/* Tools promo widget */
.bl-tools-widget {}

.bl-tool-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .14s;
}

.bl-tool-promo:hover { background: var(--surf3); }

.bl-tool-promo-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bl-tool-promo-icon svg {
  width: 16px; height: 16px;
  stroke: var(--accent); stroke-width: 1.6; fill: none;
}

.bl-tool-promo-info { flex: 1; min-width: 0; }

.bl-tool-promo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.bl-tool-promo-desc {
  font-size: 11.5px;
  color: var(--text3);
}

/* =========================================================
   BLOG SHOW PAGE STYLES
   ========================================================= */

/* Post Header */
.bl-post-header {
  padding: 64px 20px 48px;
  background: var(--surf);
}

.bl-post-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.bl-post-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.bl-post-date,
.bl-post-read-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text3);
}

.bl-post-date svg,
.bl-post-read-time svg {
  width: 14px; height: 14px;
  stroke: var(--text3); stroke-width: 1.8; fill: none;
}

.bl-post-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.bl-post-excerpt {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bl-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bl-author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.bl-author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.bl-author-initials {
  width: 100%; height: 100%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}

.bl-author-info {}

.bl-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.bl-author-role {
  font-size: 13px;
  color: var(--text3);
}

/* Post Content */
.bl-post-content {
  padding: 48px 20px;
  background: var(--surf);
}

.bl-post-content-inner {
  max-width: 720px;
  margin: 0 auto;
}

.bl-post-featured-img {
  margin-bottom: 32px;
  border-radius: var(--radius);
  overflow: hidden;
}

.bl-post-featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.bl-post-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.bl-post-body h1,
.bl-post-body h2,
.bl-post-body h3,
.bl-post-body h4,
.bl-post-body h5,
.bl-post-body h6 {
  margin: 32px 0 16px;
  font-weight: 700;
  line-height: 1.3;
}

.bl-post-body h1 { font-size: 28px; }
.bl-post-body h2 { font-size: 24px; }
.bl-post-body h3 { font-size: 20px; }
.bl-post-body h4 { font-size: 18px; }
.bl-post-body h5 { font-size: 16px; }
.bl-post-body h6 { font-size: 15px; }

.bl-post-body p {
  margin-bottom: 20px;
}

.bl-post-body ul,
.bl-post-body ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.bl-post-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.bl-post-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text2);
}

.bl-post-body code {
  background: var(--surf2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
}

.bl-post-body pre {
  background: var(--surf2);
  padding: 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 20px 0;
}

.bl-post-body pre code {
  background: none;
  padding: 0;
}

.bl-post-tags {
  margin-top: 40px;
  padding-top: 24px;
  border-top: var(--border);
}

.bl-post-tags h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.bl-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Related Posts */
.bl-related {
  padding: 64px 20px;
  background: var(--surf2);
}

.bl-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bl-related h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
  text-align: center;
}

.bl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.bl-related-card {
  background: var(--surf);
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color .16s, box-shadow .18s, transform .18s;
}

.bl-related-card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bl-related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.bl-related-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.bl-related-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.bl-related-body p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}

.bl-related-meta {
  font-size: 12px;
  color: var(--text3);
}

/* Post Navigation */
.bl-post-nav {
  padding: 48px 20px;
  background: var(--surf);
}

.bl-post-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bl-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background .14s, color .14s;
}

.bl-nav-link:hover {
  background: var(--surf3);
  color: var(--accent);
}

.bl-nav-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; stroke-width: 2; fill: none;
}

/* Responsive */
@media (max-width: 768px) {
  .bl-post-header { padding: 48px 20px 32px; }
  .bl-post-content { padding: 32px 20px; }
  .bl-related { padding: 48px 20px; }
  .bl-post-nav { padding: 32px 20px; }
  .bl-post-nav-inner { flex-direction: column; gap: 16px; }
  .bl-related-grid { grid-template-columns: 1fr; }
}

.bl-tool-promo-arrow {
  width: 16px; height: 16px;
  stroke: var(--text3); stroke-width: 2; fill: none;
  flex-shrink: 0;
}

/* =========================================================
   TOPIC HIGHLIGHTS STRIP
   ========================================================= */
.bl-topics {
  background: var(--surf2);
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 48px 24px;
}

.bl-topics-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.bl-topics-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.bl-topics-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.bl-topics-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: flex; align-items: center; gap: 5px;
}

.bl-topics-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; stroke-width: 2.2; fill: none;
}

.bl-topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.bl-topic-card {
  background: var(--surf);
  border: var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: border-color .16s, box-shadow .18s, transform .18s;
}

.bl-topic-card:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.bl-topic-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.bl-topic-icon svg {
  width: 18px; height: 18px;
  stroke-width: 1.6; fill: none;
}

.bl-topic-icon.blue   { background: #eff6ff; }
.bl-topic-icon.blue svg { stroke: var(--accent); }
.bl-topic-icon.green  { background: #f0fdf4; }
.bl-topic-icon.green svg { stroke: var(--green); }
.bl-topic-icon.sky    { background: #f0f9ff; }
.bl-topic-icon.sky svg { stroke: var(--accent2); }
.bl-topic-icon.orange { background: #fff7ed; }
.bl-topic-icon.orange svg { stroke: var(--orange); }

.bl-topic-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.bl-topic-card p {
  font-size: 12.5px;
  color: var(--text2);
  line-height: 1.55;
}

.bl-topic-count {
  font-size: 11px;
  color: var(--text3);
  margin-top: auto;
  font-weight: 600;
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.bl-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #2563eb 100%);
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bl-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 400px at 50% 50%, rgba(14,165,233,.15) 0%, transparent 70%);
  pointer-events: none;
}

.bl-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

.bl-cta h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.bl-cta p {
  font-size: 15.5px;
  color: #b8ccf5;
  line-height: 1.65;
  margin-bottom: 28px;
}

.bl-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px; font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: background .16s, transform .14s, box-shadow .16s;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

.btn-primary:hover {
  background: var(--accentH);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37,99,235,.4);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 14.5px; font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .16s, border-color .16s;
}

.btn-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .bl-layout { grid-template-columns: 1fr; }
  .bl-sidebar { position: static; }
  .bl-topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .bl-hero { padding: 48px 16px 40px; }
  .bl-hero-inner { grid-template-columns: 1fr; }
  .bl-hero-search { display: none; }
  .bl-featured-card { grid-template-columns: 1fr; }
  .bl-featured-img { min-height: 200px; }
  .bl-featured-body { padding: 24px 20px; }
  .bl-layout { padding: 32px 16px 48px; }
  .bl-topics { padding: 36px 16px; }
}

@media (max-width: 640px) {
  .bl-posts-grid { grid-template-columns: 1fr; }
  .bl-topics-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .bl-topics-grid { grid-template-columns: 1fr; }
}
