/* =============================================================
   blog.css – lista artykułów i pojedynczy artykuł
   ============================================================= */

/* ─── HERO BLOGA ────────────────────────────────────────── */
.blog-hero {
  background: var(--navy);
  padding: 72px 24px 56px;
  text-align: center;
}
.blog-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}
.blog-hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(37,99,235,.15);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.blog-hero p {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  line-height: 1.65;
}

/* ─── LISTA ARTYKUŁÓW (wiersze poziome) ─────────────────── */
.blog-list {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── WIERSZ ARTYKUŁU ───────────────────────────────────── */
.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: 200px;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .2s;
}
.blog-row:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.blog-row-thumb {
  width: 220px;
  min-height: 160px;
  background: var(--blue-l);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-row-thumb svg { width: 100%; height: 100%; display: block; }
.blog-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row-body {
  padding: 20px 24px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  min-width: 0;
}
.blog-row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-row-date {
  font-size: 12px;
  color: var(--slate);
  font-weight: 500;
}
.blog-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-l);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: .02em;
}
.blog-row-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.blog-row-excerpt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--slate);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.blog-row-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: 4px;
}

@media(max-width: 640px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
  .blog-row-thumb {
    width: 100%;
    min-height: 140px;
  }
  .blog-row-body {
    padding: 18px 18px 20px;
  }
}


/* ─── POJEDYNCZY ARTYKUŁ ────────────────────────────────── */
.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color .15s;
}
.post-back:hover { color: var(--navy); }
.post-back::before { content: '←'; }

.post-header { margin-bottom: 32px; }
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.post-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.post-meta {
  font-size: 13px;
  color: var(--slate);
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-meta .dot { color: var(--border); }

.post-svg {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--blue-l);
}
.post-svg svg { width: 100%; display: block; }

.post-content { line-height: 1.8; color: #334155; }
.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 12px;
  letter-spacing: -.01em;
}
.post-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 8px;
}
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 0 0 16px 20px; }
.post-content li { margin-bottom: 6px; }
.post-content strong { color: var(--navy); font-weight: 600; }
.post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.post-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.post-cta {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 48px;
}
.post-cta h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.post-cta p { color: rgba(255,255,255,.75); margin-bottom: 20px; font-size: 15px; }

.post-related h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media(max-width: 640px) { .post-related-grid { grid-template-columns: 1fr; } }

.related-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.related-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blue-l);
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
}
