/* Phần riêng của blog. Màu sắc, thanh menu, thẻ bài và chân trang lấy từ
   site.css — ở đây chỉ có những gì blog cần thêm. */

.blog-hero { padding: 26px 0 8px; }
.blog-hero h1 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -1.3px;
  margin: 14px 0 12px;
}
.blog-hero .sub { color: var(--ink-soft); margin: 0; font-size: 18px; max-width: 34em; }

.blog-cards { padding: 30px 0 10px; }

/* ---------- bài viết ---------- */

.article-head { padding: 22px 0 6px; }
.article-cover {
  height: 200px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.article-head h1 {
  font-size: clamp(31px, 4.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -1.1px;
  margin: 14px 0 14px;
}
.article-head .standfirst { font-size: 19.5px; color: var(--ink-soft); margin: 0; line-height: 1.6; }
.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.read-time { color: var(--ink-mute); font-size: 13.5px; font-weight: 600; }
.tag-inline {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--sage-bg);
  color: var(--sage-dk);
  font-family: "Quicksand", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

article { padding: 6px 0 20px; font-size: 17.5px; line-height: 1.78; }
article h2 {
  position: relative;
  font-size: 27px;
  letter-spacing: -.5px;
  margin: 46px 0 14px;
  line-height: 1.25;
  padding-left: 16px;
}
/* Vạch xanh đầu mỗi mục, để lướt nhanh vẫn thấy cấu trúc bài. */
article h2::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 5px;
  border-radius: 99px;
  background: var(--sage);
}
article h3 { font-size: 20px; margin: 30px 0 8px; }
article p { margin: 0 0 20px; }
article ul, article ol { margin: 0 0 20px; padding-left: 24px; }
article li { margin-bottom: 10px; }
article li::marker { color: var(--sage); font-weight: 700; }
article a { color: var(--sage-dk); text-underline-offset: 3px; }
blockquote {
  margin: 30px 0;
  padding: 20px 24px;
  background: var(--sage-bg);
  border-radius: 20px;
  color: var(--sage-dk);
  font-family: "Quicksand", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- ô mời tải app ---------- */

.cta-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px 30px;
  margin: 44px 0 10px;
  box-shadow: var(--shadow);
}
.cta-card img { width: 124px; flex: none; }
.cta-card h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: .8px; color: var(--sage-dk); text-transform: uppercase; }
.cta-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
@media (max-width: 620px) {
  .cta-card { flex-direction: column; text-align: center; }
  .cta-card img { width: 110px; }
}

/* ---------- bài kế tiếp ---------- */

.next-posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 36px 0 10px; }
@media (max-width: 620px) { .next-posts { grid-template-columns: 1fr; } }
.next-post {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--raised);
  text-decoration: none;
  color: inherit;
}
.next-post:hover { border-color: var(--sage); }
.next-post span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .4px; color: var(--ink-mute); text-transform: uppercase; }
.next-post strong { display: block; margin-top: 4px; font-family: "Quicksand", sans-serif; font-size: 17px; line-height: 1.35; }

/* Ảnh bìa minh họa vuông của các bài mới: lấy phần giữa, cao hơn ảnh chụp màn hình. */
.article-cover-art { height: 320px; }
.article-cover-art img { object-position: center 60%; }
@media (max-width: 560px) { .article-cover-art { height: 220px; } }
