/* ===== Homepage - Magazine/News Layout ===== */

/* Category Filter Tabs */
.hp-category-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}
.hp-category-tabs::-webkit-scrollbar { display: none; }

.hp-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hp-cat-tab:hover, .hp-cat-tab.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.hp-cat-tab i { font-size: 12px; }

/* Section Headers */
.hp-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}
.hp-section-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
}
.hp-section-title i { color: var(--color-primary); }
.hp-view-all {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.hp-view-all:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Stories */
.hp-stories-row {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
  scrollbar-width: none;
}
.hp-stories-row::-webkit-scrollbar { display: none; }
.hp-story-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.hp-story-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--color-primary);
  padding: 3px;
  overflow: hidden;
}
.hp-story-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hp-story-create {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-bg-darker);
  border: 2px dashed var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  font-size: 24px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hp-story-create:hover { background: rgba(34, 197, 94, 0.1); }
.hp-story-name {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  max-width: 72px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 2-Column Layout ===== */
.hp-two-col-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
}
.hp-col-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}
.hp-col-right {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-height: calc(100vh - var(--header-height) - var(--space-xl));
  overflow-y: auto;
  scrollbar-width: thin;
  padding-bottom: var(--space-xl);
}
.hp-col-right::-webkit-scrollbar { width: 4px; }
.hp-col-right::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

/* ===== Featured 5-Article Hero Grid ===== */
.hp-featured-5 { margin-bottom: 0; }

.hp-f5-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hp-f5-big {
  position: relative;
  display: block;
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  min-height: 420px;
}
.hp-f5-big .hp-f5-img { width: 100%; height: 100%; }
.hp-f5-big .hp-f5-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hp-f5-big:hover .hp-f5-img img { transform: scale(1.04); }

.hp-f5-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: white;
}
.hp-f5-big .hp-f5-overlay h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}
.hp-f5-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}
.hp-f5-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.8);
}
.hp-f5-author { font-weight: var(--font-weight-semibold); color: white; }

/* Right column of hero */
.hp-f5-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.hp-f5-side-top {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  flex: 1;
  min-height: 200px;
}
.hp-f5-side-top .hp-f5-img { width: 100%; height: 100%; }
.hp-f5-side-top .hp-f5-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hp-f5-side-top:hover .hp-f5-img img { transform: scale(1.04); }
.hp-f5-side-top .hp-f5-overlay h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  margin-bottom: 4px;
}

.hp-f5-side-text {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-decoration: none;
  transition: box-shadow var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.hp-f5-side-text:hover { box-shadow: var(--shadow-md); }
.hp-f5-badge-sm {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}
.hp-f5-badge-sm.green { background: #dcfce7; color: #16a34a; }
.hp-f5-badge-sm.blue { background: #dbeafe; color: #2563eb; }
.hp-f5-badge-sm.purple { background: #f3e8ff; color: #7c3aed; }
.hp-f5-badge-sm.orange { background: #ffedd5; color: #ea580c; }
.hp-f5-badge-sm.red { background: #fee2e2; color: #dc2626; }

.hp-f5-side-text h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-f5-side-text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.hp-f5-side-text .hp-f5-meta { color: var(--color-text-muted); }
.hp-f5-side-text .hp-f5-author { color: var(--color-text-secondary); }

/* Bottom 3 small articles */
.hp-f5-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.hp-f5-small {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}
.hp-f5-small:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hp-f5-small-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.hp-f5-small-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.hp-f5-small:hover .hp-f5-small-img img { transform: scale(1.05); }
.hp-f5-small h4 {
  padding: var(--space-sm) var(--space-md) 4px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-f5-small-author {
  padding: 0 var(--space-md) var(--space-sm);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ===== Sidebar extras ===== */
.hp-sidebar-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background: var(--color-bg-darker);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border);
}
.hp-sidebar-tag:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.hp-community-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  text-align: center;
}
.hp-comm-stat strong {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}
.hp-comm-stat span {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ===== Quick View ===== */
.hp-quick-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.hp-quick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-md); }
.hp-quick-item { display: flex; gap: var(--space-sm); align-items: flex-start; }
.hp-quick-num {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hp-quick-num.muted { background: var(--color-text-muted); }
.hp-quick-content { flex: 1; min-width: 0; }
.hp-quick-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hp-quick-cat.green { background: #dcfce7; color: #16a34a; }
.hp-quick-cat.blue { background: #dbeafe; color: #2563eb; }
.hp-quick-cat.purple { background: #f3e8ff; color: #7c3aed; }
.hp-quick-cat.orange { background: #ffedd5; color: #ea580c; }
.hp-quick-cat.red { background: #fee2e2; color: #dc2626; }
.hp-quick-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-quick-thumb { width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }

/* Health Tip */
.hp-health-tip {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: white;
}
.hp-health-tip h4 { font-size: var(--font-size-sm); font-weight: var(--font-weight-bold); margin-bottom: var(--space-sm); display: flex; align-items: center; gap: var(--space-sm); }
.hp-health-tip p { font-size: var(--font-size-sm); line-height: 1.5; opacity: 0.95; margin-bottom: var(--space-sm); }
.hp-health-tip a { color: white; font-weight: var(--font-weight-semibold); font-size: var(--font-size-sm); text-decoration: underline; }

/* ===== Bài nổi bật ===== */
.hp-featured-box { margin-bottom: var(--space-xl); }
.hp-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.hp-featured-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.hp-featured-item:nth-child(odd) { border-right: 1px solid var(--color-border); }
.hp-featured-item:nth-last-child(-n+2) { border-bottom: none; }
.hp-featured-item:hover { background: rgba(34,197,94,0.04); }
[data-theme="dark"] .hp-featured-item:hover { background: rgba(34,197,94,0.08); }
.hp-featured-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  min-width: 36px;
  opacity: 0.55;
  flex-shrink: 0;
}
.hp-featured-item:nth-child(-n+3) .hp-featured-num { opacity: 1; font-size: 32px; }
.hp-featured-text h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.45;
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hp-featured-author {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ===== Cộng đồng ===== */
.hp-community-box { margin-bottom: var(--space-xl); }
.hp-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.hp-community-card {
  display: block;
  text-decoration: none;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}
.hp-community-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hp-community-img { aspect-ratio: 16/10; overflow: hidden; }
.hp-community-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.hp-community-card:hover .hp-community-img img { transform: scale(1.05); }
.hp-community-name {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.hp-community-viewall {
  display: block;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.hp-community-viewall:hover { background: var(--color-primary); color: white; }

/* ===== Ads (sidebar) ===== */
.hp-ad-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}
.hp-ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hp-ad-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.hp-ad-image img { width: 100%; height: 100%; object-fit: cover; }
.hp-ad-badges { position: absolute; top: var(--space-sm); left: var(--space-sm); display: flex; gap: 4px; }
.hp-ad-badge { padding: 2px 8px; font-size: 10px; font-weight: var(--font-weight-bold); border-radius: var(--radius-sm); color: white; }
.hp-ad-badge.sale { background: #ef4444; }
.hp-ad-badge.new { background: var(--color-primary); }
.hp-ad-badge.hot { background: #f97316; }
.hp-ad-body { padding: var(--space-md); }
.hp-ad-body h4 { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-xs); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-ad-body p { font-size: var(--font-size-xs); color: var(--color-text-muted); margin-bottom: var(--space-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-ad-footer { display: flex; align-items: center; justify-content: space-between; }
.hp-ad-views { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.hp-ad-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold); background: var(--color-primary); color: white; border-radius: var(--radius-sm); text-decoration: none; transition: background var(--transition-fast); border: none; cursor: pointer; }
.hp-ad-btn:hover { background: var(--color-primary-dark); }

/* ===== Articles ===== */
.hp-articles-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.hp-articles-actions { display: flex; align-items: center; gap: var(--space-sm); }
.hp-btn-publish { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); background: var(--color-primary); color: white; border-radius: var(--radius-md); text-decoration: none; border: none; cursor: pointer; transition: background var(--transition-fast); }
.hp-btn-publish:hover { background: var(--color-primary-dark); }

.hp-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: 0;
}
.hp-article-card { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition-base); }
.hp-article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hp-article-image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.hp-article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.hp-article-card:hover .hp-article-image img { transform: scale(1.05); }
.hp-article-cat-badge { position: absolute; top: var(--space-sm); left: var(--space-sm); padding: 3px 10px; font-size: 11px; font-weight: var(--font-weight-semibold); border-radius: var(--radius-sm); color: white; }
.hp-article-cat-badge.green { background: var(--color-primary); }
.hp-article-cat-badge.purple { background: #7c3aed; }
.hp-article-cat-badge.blue { background: #3b82f6; }
.hp-article-cat-badge.orange { background: #f97316; }
.hp-article-cat-badge.red { background: #ef4444; }
.hp-article-video-badge { position: absolute; bottom: var(--space-sm); right: var(--space-sm); display: flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(0,0,0,0.7); color: white; font-size: var(--font-size-xs); border-radius: var(--radius-sm); }
.hp-article-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-text-primary); opacity: 0; transition: opacity var(--transition-fast); }
.hp-article-card:hover .hp-article-play { opacity: 1; }
.hp-article-body { padding: var(--space-md); }
.hp-article-body h3 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); line-height: 1.4; margin-bottom: var(--space-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-article-meta { display: flex; align-items: center; justify-content: space-between; }
.hp-author { display: flex; align-items: center; gap: var(--space-sm); }
.hp-author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hp-author-name { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
.hp-author-time { font-size: var(--font-size-xs); color: var(--color-text-muted); }

/* ===== Videos ===== */
.hp-videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin-bottom: 0; }
.hp-video-card { background: var(--color-surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--transition-base); }
.hp-video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hp-video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.hp-video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-video-duration { position: absolute; bottom: var(--space-sm); right: var(--space-sm); padding: 2px 6px; background: rgba(0,0,0,0.8); color: white; font-size: 11px; font-weight: var(--font-weight-medium); border-radius: 3px; }
.hp-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-fast); }
.hp-video-card:hover .hp-video-play { opacity: 1; }
.hp-video-body { padding: var(--space-md); }
.hp-video-body h4 { font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-xs); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp-video-meta { display: flex; align-items: center; gap: var(--space-md); font-size: var(--font-size-xs); color: var(--color-text-muted); }
.hp-video-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== Read More ===== */
.hp-readmore-list { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: 0; }
.hp-readmore-item { display: flex; gap: var(--space-md); background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-sm); transition: all var(--transition-base); align-items: center; }
.hp-readmore-item:hover { box-shadow: var(--shadow-md); }
.hp-readmore-thumb { width: 80px; height: 80px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; }
.hp-readmore-content { flex: 1; min-width: 0; }
.hp-readmore-tags { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: 4px; }
.hp-readmore-tag { padding: 2px 8px; font-size: 10px; font-weight: var(--font-weight-semibold); border-radius: var(--radius-full); }
.hp-readmore-title { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); color: var(--color-text-primary); margin-bottom: 4px; line-height: 1.4; }
.hp-readmore-author { font-size: var(--font-size-xs); color: var(--color-text-muted); }
.hp-readmore-stats { display: flex; align-items: center; gap: var(--space-md); font-size: var(--font-size-xs); color: var(--color-text-muted); flex-shrink: 0; }
.hp-readmore-stats span { display: flex; align-items: center; gap: 4px; }

/* ===== Footer ===== */
.hp-footer { background: var(--color-text-primary); color: #cbd5e1; padding: var(--space-2xl) 0 var(--space-lg); }
.hp-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.hp-footer-brand h3 { color: white; font-size: var(--font-size-xl); font-weight: var(--font-weight-bold); margin-bottom: var(--space-sm); }
.hp-footer-brand p { font-size: var(--font-size-sm); line-height: 1.6; margin-bottom: var(--space-md); }
.hp-footer-social { display: flex; gap: var(--space-sm); }
.hp-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #cbd5e1; transition: all var(--transition-fast); }
.hp-footer-social a:hover { background: var(--color-primary); color: white; }
.hp-footer h4 { color: white; font-size: var(--font-size-sm); font-weight: var(--font-weight-semibold); margin-bottom: var(--space-md); }
.hp-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.hp-footer-links a { font-size: var(--font-size-sm); color: #94a3b8; text-decoration: none; transition: color var(--transition-fast); }
.hp-footer-links a:hover { color: var(--color-primary); }
.hp-newsletter-form { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.hp-newsletter-form input { flex: 1; padding: 8px 12px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); background: rgba(255,255,255,0.1); color: white; font-size: var(--font-size-sm); }
.hp-newsletter-form input::placeholder { color: #94a3b8; }
.hp-newsletter-form button { padding: 8px 14px; background: var(--color-primary); color: white; border: none; border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition-fast); }
.hp-newsletter-form button:hover { background: var(--color-primary-dark); }
.hp-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-md); text-align: center; font-size: var(--font-size-xs); color: #64748b; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hp-two-col-layout { grid-template-columns: 1fr; }
  .hp-col-right { position: static; max-height: none; overflow: visible; }
  .hp-f5-grid { grid-template-columns: 1fr; }
  .hp-f5-big { min-height: 300px; }
  .hp-featured-grid { grid-template-columns: 1fr; }
  .hp-featured-item:nth-child(odd) { border-right: none; }
  .hp-community-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hp-f5-bottom { grid-template-columns: 1fr; }
  .hp-articles-grid { grid-template-columns: 1fr; }
  .hp-videos-grid { grid-template-columns: 1fr; }
  .hp-footer-grid { grid-template-columns: 1fr; }
  .hp-readmore-item { flex-direction: column; align-items: flex-start; }
  .hp-readmore-thumb { width: 100%; height: 160px; }
  .hp-readmore-stats { margin-top: var(--space-sm); }
  .hp-f5-big { min-height: 240px; }
  .hp-f5-big .hp-f5-overlay h2 { font-size: var(--font-size-xl); }
}

@media (max-width: 425px) {
  .hp-story-avatar, .hp-story-create { width: 60px; height: 60px; }
  .hp-story-name { max-width: 60px; font-size: 10px; }
}

/* ===== Category Boxes (Chuyên mục nổi bật) ===== */
.hp-catbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.hp-catbox-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow var(--transition-normal);
}
.hp-catbox-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.hp-catbox-featured {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 5/3;
}
.hp-catbox-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.hp-catbox-card:hover .hp-catbox-featured img {
  transform: scale(1.05);
}
.hp-catbox-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}
.hp-catbox-main-title {
  padding: var(--space-md) var(--space-md) var(--space-xs);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}
.hp-catbox-main-title a {
  color: var(--color-text-primary);
  text-decoration: none;
}
.hp-catbox-main-title a:hover {
  color: var(--color-primary);
}
.hp-catbox-list {
  list-style: none;
  padding: 0 var(--space-md);
  margin: 0;
}
.hp-catbox-list li {
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
}
.hp-catbox-list li a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  display: block;
  transition: color var(--transition-fast);
}
.hp-catbox-list li a:hover {
  color: var(--color-primary);
}
.hp-catbox-viewall {
  display: block;
  text-align: center;
  padding: var(--space-md);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-top: var(--space-xs);
}
.hp-catbox-viewall:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}
.hp-catbox-viewall i {
  margin-left: 4px;
  font-size: 11px;
}

@media (max-width: 768px) {
  .hp-catbox-grid { grid-template-columns: 1fr; }
}
