/* ============================================================
   SCAR - TIN TỨC & TRANG TĨNH (archive.php, single.php, page.php)
   ============================================================ */
.hm-blog { padding: 16px 0 50px; }
.hm-blog-title { font-size: 30px; font-weight: 800; color: var(--hm-text); margin: 0 0 6px; }
.hm-blog-sub { font-size: 14px; color: var(--hm-muted); margin: 0 0 22px; }

.hm-blog-row { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.hm-blog-row.is-full { grid-template-columns: minmax(0, 1fr); max-width: 840px; margin: 0 auto; }

/* ---------- LƯỚI TIN ---------- */
.hm-blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.hm-news-card { background: #fff; border: 1px solid var(--hm-border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s; }
.hm-news-card:hover { box-shadow: 0 8px 24px rgba(16,24,40,.10); }
.hm-news-card-img { display: block; aspect-ratio: 16 / 10; background: var(--hm-bg); }
.hm-news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-news-card-body { padding: 16px; }
.hm-news-card-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0 0 8px; }
.hm-news-card-title a { color: var(--hm-text); text-decoration: none; }
.hm-news-card-title a:hover { color: var(--hm-red); }
.hm-news-date { font-size: 12px; color: var(--hm-muted); display: inline-flex; align-items: center; gap: 6px; }
.hm-news-card-excerpt { font-size: 13px; line-height: 1.7; color: var(--hm-muted); margin: 10px 0 0; }

/* ---------- BÀI VIẾT ---------- */
.hm-article-title { font-size: 30px; font-weight: 800; line-height: 1.3; color: var(--hm-text); margin: 0 0 14px; }
.hm-article-meta { display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--hm-border); margin-bottom: 20px; }
.hm-article-meta span { font-size: 13px; color: var(--hm-muted); display: inline-flex; align-items: center; gap: 7px; }

.hm-article-content { font-size: 16px; line-height: 1.85; color: #374151; }
.hm-article-content > *:first-child { margin-top: 0; }
.hm-article-content p { margin: 0 0 16px; }
.hm-article-content h2 { font-size: 22px; font-weight: 800; color: var(--hm-text); margin: 30px 0 12px; }
.hm-article-content h3 { font-size: 18px; font-weight: 700; color: var(--hm-text); margin: 24px 0 10px; }
.hm-article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.hm-article-content ul, .hm-article-content ol { margin: 0 0 16px; padding-left: 22px; }
.hm-article-content li { margin-bottom: 8px; }
.hm-article-content a { color: var(--hm-red); }
.hm-article-content blockquote { margin: 20px 0; padding: 14px 20px; border-left: 3px solid var(--hm-red); background: var(--hm-bg); border-radius: 0 8px 8px 0; color: #4b5563; }
.hm-article-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.hm-article-content th, .hm-article-content td { border: 1px solid var(--hm-border); padding: 10px; font-size: 14px; }
.hm-article-content figure { margin: 0 0 16px; }
.hm-article-content iframe { max-width: 100%; }

.hm-article-foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hm-border); }
.hm-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--hm-muted); }
.hm-tag { border: 1px solid var(--hm-border); border-radius: 20px; padding: 5px 13px; font-size: 12px; color: #374151; text-decoration: none; }
.hm-tag:hover { border-color: var(--hm-red); color: var(--hm-red); }
.hm-share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hm-muted); }
.hm-share-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hm-border); display: inline-flex; align-items: center; justify-content: center; color: #4b5563; text-decoration: none; font-size: 13px; transition: all .2s; }
.hm-share-btn:hover { background: var(--hm-red); border-color: var(--hm-red); color: #fff; }

/* ---------- SIDEBAR ---------- */
.hm-widget { background: #fff; border: 1px solid var(--hm-border); border-radius: 10px; padding: 18px; margin-bottom: 20px; }
.hm-widget-title { font-size: 15px; font-weight: 800; text-transform: uppercase; color: var(--hm-text); margin: 0 0 14px; letter-spacing: .3px; }

.hm-widget-search { display: flex; gap: 8px; }
.hm-widget-search input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--hm-border); border-radius: 6px; padding: 0 12px; font-size: 14px; }
.hm-widget-search input:focus { outline: none; border-color: var(--hm-red); }
.hm-widget-search button { width: 44px; border: none; border-radius: 6px; background: var(--hm-red); color: #fff; cursor: pointer; font-size: 14px; }
.hm-widget-search button:hover { background: var(--hm-red-dark); }

.hm-widget-list { list-style: none; margin: 0; padding: 0; }
.hm-widget-list li { margin: 0; }
.hm-widget-list li a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; color: #374151; text-decoration: none; border-bottom: 1px solid #f1f3f5; }
.hm-widget-list li:last-child a { border-bottom: none; }
.hm-widget-list li a:hover { color: var(--hm-red); }
.hm-widget-list ul { list-style: none; margin: 0; padding-left: 14px; }

.hm-trending-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f3f5; }
.hm-trending-item:last-child { border-bottom: none; }
.hm-trending-img { flex: 0 0 76px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--hm-bg); }
.hm-trending-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-trending-title { font-size: 13px; font-weight: 600; line-height: 1.5; margin: 0; }
.hm-trending-title a { color: var(--hm-text); text-decoration: none; }
.hm-trending-title a:hover { color: var(--hm-red); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
	.hm-blog-row { grid-template-columns: 1fr; }
	.hm-article-title { font-size: 24px; }
}
@media (max-width: 640px) {
	.hm-blog-grid { grid-template-columns: 1fr; }
	.hm-blog-title { font-size: 24px; }
	.hm-article-title { font-size: 21px; }
	.hm-article-content { font-size: 15px; }
	.hm-article-foot { flex-direction: column; align-items: flex-start; }
}
