/* ============================================
   BLOG / BÀI VIẾT — kế thừa design token từ css/style.css
   ============================================ */

/* ===== Ô tìm kiếm ===== */
.blog-search{
  display:flex;gap:10px;max-width:480px;margin:0 auto 40px;
}
.blog-search input{
  flex:1;padding:13px 16px;border-radius:100px;border:1.5px solid rgba(75,90,96,.2);
  background:var(--white);font-family:var(--font-body);font-size:.95rem;
}
.blog-search button{
  padding:13px 22px;border-radius:100px;background:var(--amber);color:var(--navy-deep);
  font-weight:600;font-size:.9rem;
}

/* ===== Lưới bài viết ===== */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media(max-width:880px){.blog-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.blog-grid{grid-template-columns:1fr}}

.blog-card{
  background:var(--white);border-radius:var(--radius);overflow:hidden;
  border:1px solid rgba(75,90,96,.14);
  transition:transform .15s ease, box-shadow .15s ease;
  display:flex;flex-direction:column;
}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(10,37,48,.12)}
.blog-card .thumb{
  aspect-ratio:16/10;background:var(--foam-2);
  display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.blog-card .thumb img{width:100%;height:100%;object-fit:cover}
.blog-card .thumb .ph{font-size:2rem;color:var(--steel)}
.blog-card .body{padding:20px;display:flex;flex-direction:column;flex:1}
.blog-card .meta{font-family:var(--font-mono);font-size:.75rem;color:var(--steel);margin-bottom:8px}
.blog-card h3{font-size:1.05rem;margin-bottom:8px;line-height:1.3}
.blog-card p{color:var(--steel);font-size:.9rem;flex:1}
.blog-card .readmore{margin-top:14px;font-family:var(--font-display);font-size:.85rem;font-weight:600;color:var(--buoy)}

.blog-empty{text-align:center;color:var(--steel);padding:60px 0}

/* ===== Phân trang ===== */
.blog-pagination{display:flex;justify-content:center;gap:8px;margin-top:48px;flex-wrap:wrap}
.blog-pagination a,.blog-pagination span{
  min-width:38px;height:38px;padding:0 8px;border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-mono);font-size:.88rem;
  border:1px solid rgba(75,90,96,.2);color:var(--ink);
}
.blog-pagination a:hover{border-color:var(--amber)}
.blog-pagination .current{background:var(--navy-deep);color:var(--white);border-color:var(--navy-deep)}

/* ===== Trang chi tiết bài viết ===== */
.article-head{max-width:720px;margin:0 auto 30px;text-align:center}
.article-head .meta{font-family:var(--font-mono);font-size:.8rem;color:rgba(255,255,255,.6);margin-top:14px}
.article-cover{
  max-width:920px;margin:0 auto 40px;border-radius:var(--radius);overflow:hidden;
  aspect-ratio:16/8;background:var(--foam-2);
}
.article-cover img{width:100%;height:100%;object-fit:cover;display:block}

.article-body{
  max-width:720px;margin:0 auto;color:var(--ink);font-size:1.02rem;line-height:1.75;
}
.article-body h2{margin:36px 0 14px}
.article-body h3{margin:28px 0 10px;font-size:1.2rem}
.article-body p{margin-bottom:18px}
.article-body img{border-radius:var(--radius);margin:20px 0}
.article-body ul,.article-body ol{margin:0 0 18px 22px}
.article-body li{margin-bottom:6px}
.article-body a{color:var(--buoy);text-decoration:underline}
.article-body blockquote{
  border-left:3px solid var(--amber);padding:4px 0 4px 18px;
  color:var(--steel);font-style:italic;margin:22px 0;
}

.article-gallery-wrap{max-width:720px;margin:36px auto 0}
.article-gallery-wrap h3{margin-bottom:16px}
.article-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media(max-width:600px){.article-gallery{grid-template-columns:repeat(2,1fr)}}
.article-gallery-item{
  display:block;aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--foam-2);
}
.article-gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.article-gallery-item:hover img{transform:scale(1.06)}

.article-share{
  max-width:720px;margin:36px auto 0;display:flex;gap:10px;align-items:center;
  padding-top:24px;border-top:1px solid rgba(75,90,96,.15);
}
.article-share span{font-family:var(--font-display);font-size:.85rem;color:var(--steel)}
.article-share a{
  width:36px;height:36px;border-radius:50%;background:var(--foam-2);
  display:flex;align-items:center;justify-content:center;color:var(--navy-deep);
}
.article-share a:hover{background:var(--amber)}

.related-wrap{max-width:920px;margin:64px auto 0}
.related-wrap h3{margin-bottom:20px}

.breadcrumb{font-family:var(--font-mono);font-size:.8rem;color:rgba(255,255,255,.55);margin-bottom:18px}
.breadcrumb a{color:rgba(255,255,255,.8)}
.breadcrumb a:hover{color:var(--amber)}
