/* =====================================================================
   Blog — czysty, profesjonalny układ.
   Prosty nagłówek na tle strony (BEZ białej kafelki), artykuły w boxach
   z delikatną ramką, bez cieni i gradientów.
   ===================================================================== */

/* ---------- Prosty nagłówek (jak strona CMS / Regulamin) ---------- */
.blog-head { padding: 6px 0 26px; }
.blog-head h1 { margin: 0 0 10px; font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--ink, #15233b); }
.blog-head p { margin: 0; max-width: 660px; font-size: 15px; line-height: 1.65; color: #5a6678; }

/* ---------- Lista: 2 kolumny, artykuły w boxach z ramką ---------- */
.blog-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 4px 0 12px;
}
.bpost {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.bpost:hover { border-color: #c8cedb; }

.bpost-img {
  display: block;
  aspect-ratio: 16 / 10;
  background: #eef1f6;            /* płaskie tło, bez gradientu/cienia */
  overflow: hidden;
  border-bottom: 1px solid #e4e7ee;
}
.bpost-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bpost:hover .bpost-img img { transform: scale(1.03); }
.bpost-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #b6bcc8; }

.bpost-body { display: flex; flex-direction: column; flex: 1; padding: 18px 22px 22px; }
.bpost-cat { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #e1352b; }
.bpost-title { margin: 7px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.bpost-title a { color: var(--ink, #15233b); text-decoration: none; }
.bpost-title a:hover { color: #e1352b; }
.bpost-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #97a0ad; }
.bpost-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c4ccd8; }
.bpost-excerpt { flex: 1; margin: 10px 0 14px; font-size: 14px; line-height: 1.6; color: #5a6678; }
.bpost-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #e1352b; text-decoration: none; align-self: flex-start; }
.bpost-more svg { transition: transform .2s ease; }
.bpost:hover .bpost-more svg { transform: translateX(3px); }
.blog-empty { padding: 36px 0; color: #6b7385; font-size: 15px; }

@media (max-width: 760px) {
  .blog-photo-grid { grid-template-columns: 1fr; gap: 22px; }
  .blog-head h1 { font-size: 25px; }
  .bpost-title { font-size: 18px; }
}

/* ---------- Pojedynczy wpis ---------- */
.post-wrap { max-width: 820px; margin: 0 auto; }
.post-head { padding: 4px 0 22px; }
.post-head .bpost-cat { display: block; margin-bottom: 10px; }
.post-head h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.22; font-weight: 800; color: var(--ink, #15233b); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #97a0ad; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c4ccd8; }

.post-hero { width: 100%; aspect-ratio: 16 / 9; background: #eef1f6; border: 1px solid #e4e7ee; border-radius: 12px; overflow: hidden; margin: 0 0 28px; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-body { font-size: 16px; line-height: 1.78; color: #3a4150; }
.post-body > *:first-child { margin-top: 0; }
.post-body p { margin: 0 0 18px; }
.post-body h2 { font-size: 23px; font-weight: 700; color: var(--ink, #15233b); margin: 30px 0 12px; }
.post-body h3 { font-size: 19px; font-weight: 700; color: var(--ink, #15233b); margin: 24px 0 10px; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.post-body a { color: #e1352b; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; line-height: 1.7; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 20px 0; padding: 12px 22px; border-left: 3px solid #e1352b; color: #5a6678; background: #faf7f6; }

.post-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #e4e7ee; font-weight: 700; color: #e1352b; text-decoration: none; }
.post-back svg { transition: transform .2s ease; }
.post-back:hover svg { transform: translateX(-3px); }

@media (max-width: 560px) { .post-head h1 { font-size: 25px; } }
