/* =========================================================
   Blog (list page + post pages) — measured from the live Wix blog at 1280px
   ========================================================= */
.blog-main { background: #fff; }
.blog-frame {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 0 20px 84px;
}

/* category bar */
.blog-cats { height: 80px; display: flex; align-items: center; }
.blog-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 40px; }
.blog-cats a { font-size: 14px; line-height: 1.4; color: #000; transition: color .2s ease; }
.blog-cats a:hover, .blog-cats a.active { color: var(--red); }

.blog-h1 {
  margin: 40px 0 0 20px;
  font-family: var(--head); font-weight: 400;
  font-size: 36px; line-height: 1.4;
}

/* shared post meta (avatar · author · date · read time) */
.post-meta { position: relative; display: flex; align-items: center; gap: 10px; padding-right: 30px; }
.post-meta .avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.pm-text { display: flex; flex-direction: column; font-size: 12px; line-height: 1.45; }
.pm-sub { display: flex; gap: 6px; }
.pm-text.one-line { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; line-height: 1.5; }
.pm-more { position: absolute; right: 0; top: 50%; width: 19px; height: 19px; margin-top: -10px; }
.pm-more svg { width: 19px; height: 19px; fill: #000; }
.heart { width: 19px; height: 19px; fill: none; stroke: #e84a43; stroke-width: 1; flex: none; }

/* list page cards */
.post-list { margin-top: 73px; display: flex; flex-direction: column; gap: 32px; }
.post-card {
  display: grid; grid-template-columns: 454px 1fr;
  width: 940px; max-width: 100%;
  min-height: 341px;
  border: 1px solid rgba(232, 230, 230, .75);
  background: #fff;
}
.post-card[hidden] { display: none; }
.pc-media { display: block; overflow: hidden; margin: -1px 0 -1px -1px; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .pc-media img { transform: scale(1.03); }
.pc-body { display: flex; flex-direction: column; padding: 26px 35px 26px 35px; min-width: 0; }
.pc-title {
  margin-top: 15px;
  font-family: var(--head); font-weight: 400;
  font-size: 28px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-title a:hover { color: var(--red); }
.pc-excerpt {
  margin-top: 12px;
  font-size: 16px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  font-size: 12px;
}
.pc-foot .heart { margin-left: auto; }
.blog-empty { margin: 60px 20px; font-size: 16px; }

/* post page */
.post {
  width: 940px; max-width: 100%;
  border: 1px solid rgba(232, 230, 230, .75);
  background: #fff;
  margin-top: 20px;
  padding: 60px 0 61px;
}
.post-col { width: 740px; max-width: calc(100% - 40px); margin: 0 auto; }
.post-title {
  margin-top: 18px;
  font-family: var(--head); font-weight: 400;
  font-size: 40px; line-height: 1.4;
}
.post-body { margin-top: 21px; font-size: 18px; line-height: 27px; overflow-wrap: break-word; }
.post-body p, .post-body ul, .post-body ol, .post-body h2, .post-body h3, .post-body figure { margin: 0; }
.post-body p.el { height: 27px; }
.post-body h2 { font-family: var(--head); font-weight: 400; font-size: 28px; line-height: 1.4; }
.post-body h3 { font-family: var(--head); font-weight: 400; font-size: 22px; line-height: 1.4; }
.post-body ul, .post-body ol { padding-left: 36px; }
.post-body a { text-decoration: underline; }
.post-body a:hover { color: var(--red); }
.post-body figure img { width: 100%; height: auto; }
.post-body figcaption { font-size: 14px; line-height: 1.5; text-align: center; margin-top: 6px; }

.post-tags { list-style: none; margin: 19px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags li {
  display: flex; align-items: center; height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, .2);
  font-size: 14px; line-height: 1.4;
}
.post-share {
  display: flex; align-items: center; gap: 30px;
  height: 66px; margin-top: 19px;
  border-top: 1px solid rgba(0, 0, 0, .2);
}
.post-share a, .post-share button { display: flex; padding: 0; border: 0; background: none; cursor: pointer; }
.post-share svg { width: 19px; height: 19px; fill: #000; }
.post-share a:hover svg, .post-share button:hover svg { fill: var(--red); }
.post-share .copied svg { fill: var(--red); }
.post-stats {
  display: flex; align-items: center; gap: 22px;
  height: 40px; padding-top: 1px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  font-size: 14px;
}
.post-stats .heart { margin-left: auto; }
.post-cats { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.post-cats a { text-decoration: underline; }
.post-cats a:hover { color: var(--red); }

/* recent posts */
.recent-posts { margin-top: 30px; }
.rp-head { display: flex; justify-content: space-between; align-items: baseline; }
.rp-head h2 { font-family: var(--body); font-weight: 400; font-size: 18px; line-height: 1.5; }
.rp-head a { font-size: 14px; }
.rp-head a:hover { color: var(--red); }
.rp-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 291px); gap: 34px; }
.rp-card { border: 1px solid rgba(232, 230, 230, .75); background: #fff; display: flex; flex-direction: column; min-height: 314px; }
.rp-media { display: block; height: 162px; overflow: hidden; }
.rp-media img { width: 100%; height: 100%; object-fit: cover; }
.rp-body { flex: 1; display: flex; flex-direction: column; padding: 24px 24px 24px; }
.rp-body h3 {
  font-family: var(--head); font-weight: 400; font-size: 18px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rp-body h3 a:hover { color: var(--red); }
.rp-foot {
  margin-top: auto;
  display: flex; align-items: center; gap: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, .2);
  font-size: 12px;
}
.rp-stat { display: inline-flex; align-items: center; gap: 6px; }
.rp-stat svg { width: 19px; height: 19px; fill: #000; }
.rp-foot .heart { margin-left: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .rp-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
  .blog-frame { padding: 0 16px 50px; }
  .blog-cats { height: auto; padding: 24px 0 8px; }
  .blog-cats ul { gap: 8px 24px; }
  .blog-h1 { margin: 24px 0 0; font-size: 28px; }
  .post-list { margin-top: 24px; gap: 24px; }
  .post-card { grid-template-columns: 1fr; min-height: 0; }
  .pc-media { margin: -1px -1px 0; aspect-ratio: 454 / 341; }
  .pc-body { padding: 20px; }
  .pc-title { font-size: 22px; }
  .pc-foot { margin-top: 18px; }
  .post { padding: 30px 0 36px; }
  .post-col { max-width: calc(100% - 32px); }
  .post-title { font-size: 28px; }
  .post-body { font-size: 16px; line-height: 24px; }
  .post-body p.el { height: 24px; }
  .post-body h2 { font-size: 24px; }
  .post-body h3 { font-size: 20px; }
  .post-body ul, .post-body ol { padding-left: 24px; }
}
