/* Blog chung của grooedu.com (/blog/) — nạp ở trang có body.blog / body.blog-index */
.blog-index, .blog { --display: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif; }
.blog-index h1, .blog-index h2, .blog-index h3, .blog .prose h1, .blog .pcard h3, .blog .more-title { font-family: var(--display); letter-spacing: -0.01em; }

/* đầu trang danh sách */
.b-hero { position: relative; overflow: hidden; padding: 64px 0 36px; text-align: center; background: radial-gradient(80% 120% at 50% 0, var(--brand-soft), transparent 70%); }
.b-kicker { display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.b-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 0 auto 14px; max-width: 760px; font-weight: 800; text-wrap: balance; }
.b-lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.b-list { padding: 24px 0 80px; }

/* thẻ bài viết */
.blog-index main.home-main { padding: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; margin-top: 22px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(20, 30, 60, .1); }
.pc-link { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; }
.pc-link:hover { color: var(--text); }
.pc-art { --tint: color-mix(in srgb, var(--app) 14%, var(--surface)); display: grid; place-items: center; height: 190px; overflow: hidden; background: linear-gradient(140deg, var(--tint), color-mix(in srgb, var(--app) 26%, var(--surface))); }
.pc-art.widget img { width: 70%; max-width: 360px; height: auto; filter: drop-shadow(0 14px 22px rgba(40, 10, 25, .2)); }
.pc-art.shot { align-items: start; }
.pc-art.shot img { width: 40%; max-width: 190px; margin-top: 24px; border: 7px solid #10151b; border-bottom: 0; border-radius: 22px 22px 0 0; }
.pc-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-body h2, .pc-body h3 { margin: 0; font-size: 21px; line-height: 1.22; font-weight: 800; }
.pc-body p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pc-meta { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pc-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border-radius: 999px; background: color-mix(in srgb, var(--app) 12%, transparent); color: var(--app); font-size: 13px; font-weight: 800; }
.pc-tag img { border-radius: 6px; }
.pcard.featured .pc-link { display: grid; grid-template-columns: 1.1fr 1fr; }
.pcard.featured .pc-art { height: auto; min-height: 320px; }
.pcard.featured .pc-body { padding: 34px 36px; justify-content: center; }
.pcard.featured h2 { font-size: clamp(26px, 3vw, 36px); }
.pcard.featured p { font-size: 17px; }

/* trang bài viết */
.blog .prose.post { max-width: 720px; }
.crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--muted); }
.crumbs a { text-decoration: none; }
.blog .prose h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 800; margin-bottom: 12px; text-wrap: balance; }
.blog .prose p, .blog .prose li { font-size: 17.5px; line-height: 1.75; }
.blog .prose h2 { font-size: 27px; margin-top: 48px; }
.blog .prose h3 { font-size: 20px; }
.blog .prose blockquote { margin: 24px 0; padding: 4px 20px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 14px 14px 0; }
.post-cover { margin: 8px 0 32px; border-radius: 26px; display: grid; place-items: center; height: 300px; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--app) 14%, var(--surface)), color-mix(in srgb, var(--app) 28%, var(--surface))); }
.post-cover.widget img { width: 70%; max-width: 480px; height: auto; filter: drop-shadow(0 18px 28px rgba(40, 10, 25, .22)); }
.post-cover.shot { align-items: start; }
.post-cover.shot img { width: 34%; max-width: 230px; height: auto; margin-top: 36px; border: 8px solid #10151b; border-bottom: 0; border-radius: 30px 30px 0 0; }

.app-card { --tint: color-mix(in srgb, var(--app) 9%, var(--surface)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin: 44px 0 8px; padding: 22px 24px; border-radius: 24px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--app) 22%, transparent); }
.app-card img { border-radius: 16px; box-shadow: 0 10px 20px color-mix(in srgb, var(--app) 30%, transparent); }
.ac-name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--app); line-height: 1.1; }
.ac-name span { font-family: 'Be Vietnam Pro', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--app) 14%, transparent); vertical-align: middle; }
.blog .prose .ac-tag { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ac-btn { white-space: nowrap; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--app); color: #fff; font-weight: 800; text-decoration: none; font-size: 15px; }
.ac-btn:hover { color: #fff; filter: brightness(1.06); }

.more-posts { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.blog .prose .more-title { margin: 0; font-size: 26px; }
.more-posts .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-posts .pc-art { height: 150px; }
.blog .prose .pc-body p { font-size: 15px; line-height: 1.55; }
.blog .prose .pc-body h3 { margin: 0; font-size: 19px; }

@media (max-width: 900px) {
  .pcard.featured .pc-link { grid-template-columns: 1fr; }
  .pcard.featured .pc-art { min-height: 220px; }
  .pcard.featured .pc-body { padding: 22px; }
}
@media (max-width: 600px) {
  .pgrid, .more-posts .pgrid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: auto 1fr; }
  .ac-btn { grid-column: 1 / -1; justify-content: center; }
  .post-cover { height: 220px; border-radius: 20px; }
  .blog .prose p, .blog .prose li { font-size: 17px; }
}
.blog main#main { padding-top: 44px; padding-bottom: 88px; }
@media (max-width: 600px) { .blog main#main { padding-top: 28px; } }
