/* =============================================
   HÓNG HÓT – style.css
   Dùng chung cho toàn bộ trang
   ============================================= */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fefefe;
}
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: auto; object-fit: cover; }

/* ===== CSS VARIABLES ===== */
:root {
  --red: #e8321a;
  --red-dark: #c0260f;
  --red-light: #fdf1ef;
  --ink: #1a1a1a;
  --ink-2: #444;
  --ink-3: #888;
  --paper: #fff;
  --bg: #f5f4f0;
  --border: #e2e0da;
  --max: 1160px;
  --pad: clamp(16px, 4vw, 32px);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* ===== HEADER ACTIONS ===== */
.btn-icon {
  width: 36px; height: 36px;
  border: none; background: none; cursor: pointer;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: background 0.15s;
  flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg); }
.btn-icon svg { width: 18px; height: 18px; }

/* Hamburger 3 gạch */
.hamburger { flex-direction: column; gap: 4px; }
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.25s;
}
/* Animation khi mở */
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== MOBILE SEARCH ===== */
.mobile-search {
  display: none;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.mobile-search.open { display: block; }
.mobile-search form {
  display: flex; gap: 8px;
}
.mobile-search input {
  flex: 1; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; outline: none;
}
.mobile-search input:focus { border-color: var(--red); }
.mobile-search button {
  padding: 8px 16px; background: var(--red); color: #fff;
  border: none; border-radius: 8px; font-family: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 11px var(--pad);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  transition: all 0.15s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red); background: var(--red-light); }

/* ===== RESPONSIVE ===== */

/* Desktop > 900px */
@media (min-width: 901px) {
  .search-toggle { display: none !important; }
  .hamburger     { display: none !important; }
  .mobile-nav    { display: none !important; }
  .mobile-search { display: none !important; }
  .search-box    { display: flex !important; }
  .main-nav      { display: flex !important; }
}

/* Tablet + Mobile ≤ 900px: dùng hamburger hết */
@media (max-width: 900px) {
  .main-nav      { display: none !important; }
  .search-box    { display: none !important; }
  .search-toggle { display: flex !important; }
  .hamburger     { display: flex !important; }
  .header-top    { height: 52px; }
}
/* LOGO */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--ink);
  line-height: 1;
}
.logo-text span { color: var(--red); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 6px 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav a.active { color: var(--red); font-weight: 600; }

/* SEARCH */
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-box {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 6px;
  transition: border-color 0.15s;
}
.search-box:focus-within { border-color: var(--red); }
.search-box input {
  border: none; background: none; outline: none;
  font-size: 13px; font-family: inherit;
  color: var(--ink); width: 140px;
}
.search-box input::placeholder { color: var(--ink-3); }
.search-icon { width: 14px; height: 14px; color: var(--ink-3); flex-shrink: 0; }

/* BREAKING BAR */
.breaking-bar {
  background: #fbfbfb;
  padding: 7px 0;
  overflow: hidden;
}
.breaking-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
}
.breaking-label {
  background: var(--red);
  color: #fcfcfc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.breaking-ticker { flex: 1; overflow: hidden; }
.breaking-track {
  display: flex;
  gap: 48px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
}
.breaking-track:hover { animation-play-state: paused; }
.breaking-track a {
  font-size: 12px;
  color: rgb(41 41 41 / 92%);
  font-weight: 500;
  transition: color 0.15s;
}
.breaking-track a:hover { color: #fff; }
.breaking-track a::before {
  content: '●';
  margin-right: 8px;
  font-size: 6px;
  vertical-align: middle;
  opacity: 0.6;
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== MAIN WRAPPER ===== */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 48px;
}

/* ===== SECTION HEADER ===== */
.section-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.section-hd-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.section-hd-title .dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
.section-more {
  font-size: 12px; font-weight: 600; color: var(--red);
  display: flex; align-items: center; gap: 4px;
  transition: gap 0.15s;
}
.section-more:hover { gap: 8px; }
.section-more::after { content: '→'; }

/* ===== CARD PLACEHOLDER COLORS ===== */
.card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.p-world  { background: linear-gradient(135deg, #1565c0, #42a5f5); }
.p-tech   { background: linear-gradient(135deg, #283593, #5c6bc0); }
.p-biz    { background: linear-gradient(135deg, #e65100, #ffa726); }
.p-sport  { background: linear-gradient(135deg, #1b5e20, #66bb6a); }
.p-social { background: linear-gradient(135deg, #880e4f, #f06292); }
.p-entertain { background: linear-gradient(135deg, #4a148c, #ab47bc); }
.p-hero   { background: linear-gradient(135deg, #c0260f, #e8321a, #f57c55); }

/* ===== NEWS CARD (dùng ở nhiều trang) ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-card {
  background: var(--paper);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.news-card-cover {
  position: relative;
  padding-top: 66.66%;
  overflow: hidden;
  background: #eee;
}
.news-card-cover .card-img { position: absolute; inset: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-card-title {
  font-size: 14px; font-weight: 600;
  color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-title:hover { color: var(--red); }
.news-card-meta { font-size: 11px; color: var(--ink-3); margin-top: auto; }

/* ===== FOOTER ===== */
.site-footer {
  background: #fbfbfb;
  color: rgb(39 39 39 / 50%);
  padding: 24px 0;
  margin-top: 8px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 14px;
  color: rgb(24 24 24 / 72%);
  padding: 2px 8px;
  transition: color 0.15s;
}
.footer-links a:hover {color: #1d1d1d;}
.footer-links span { color: rgba(255,255,255,0.2); font-size: 13px; }
.footer-copy {font-size: 13px;color: rgb(13 13 13 / 58%);}

/* ===== BADGE / TAG ===== */
.badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.7px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
}
.badge-red   { background: var(--red-light); color: var(--red); }
.badge-blue  { background: #e6f1fb; color: #185fa5; }
.badge-amber { background: #faeeda; color: #854f0b; }
.badge-green { background: #eaf3de; color: #3b6d11; }
.badge-purple{ background: #eeedfe; color: #534ab7; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation: fadeUp 0.4s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.4s 0.2s ease both; }
.fade-up-3 { animation: fadeUp 0.4s 0.3s ease both; }

/* ===== RESPONSIVE CHUNG ===== */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .search-box input { width: 100px; }
  .news-grid { grid-template-columns: 1fr; }
}
/* ===== BREADCRUMB ===== */
.breadcrumb {
  max-width: var(--max); margin: 0 auto;
  padding: 12px var(--pad) 0;
  font-size: 12px; color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--ink-3); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { opacity: 0.5; }
/* ===== HOME ===== */
/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-main {
  grid-row: 1 / 3;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
  display: flex; flex-direction: column;
}
.hero-main:hover { transform: translateY(-2px); }
.hero-cover {
  position: relative; padding-top: 62%;
  background: #ddd; overflow: hidden; flex-shrink: 0;
}
.hero-cover .cover-img { position: absolute; inset: 0; }
.hero-cover .cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.cover-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.hero-body { padding: 18px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 700;
  line-height: 1.35; color: var(--ink); margin-bottom: 10px;
}
.hero-title:hover { color: var(--red); }
.hero-meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-meta span::before { content: '·'; margin-right: 8px; }
.hero-meta span:first-child::before { display: none; }

.hero-sub-grid {
  grid-column: 2; grid-row: 1 / 3;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.sub-card {
  background: var(--paper); border-radius: 10px;
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s;
}
.sub-card:hover { transform: translateY(-2px); }
.sub-cover { position: relative; padding-top: 66.66%; overflow: hidden; flex-shrink: 0; }
.sub-cover-inner { position: absolute; inset: 0; }
.sub-cover-inner img { width: 100%; height: 100%; object-fit: cover; }
.sub-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sub-body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.sub-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--red); }
.sub-title {
  font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sub-title:hover { color: var(--red); }
.sub-meta { font-size: 11px; color: var(--ink-3); margin-top: auto; }

/* ===== CHUYÊN MỤC ===== */
.cat-section { margin-bottom: 40px; }

/* ===== TIN MỚI NHẤT ===== */
.latest-section { margin-bottom: 40px; }
.latest-two-col { display: grid; grid-template-columns: 1fr 38%; gap: 20px; align-items: start; }
.latest-list { display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.latest-item {
  display: flex; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); align-items: flex-start; transition: background 0.15s;
}
.latest-item:last-child { border-bottom: none; }
.latest-item:hover { background: var(--red-light); }
.latest-thumb {
  width: 80px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; aspect-ratio: 3/2; background: #eee; position: relative;
}
.latest-thumb-inner { position: absolute; inset: 0; }
.latest-thumb-inner img { width: 100%; height: 100%; object-fit: cover; }
.latest-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.latest-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--red); }
.latest-title {
  font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest-title:hover { color: var(--red); }
.latest-desc {
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest-meta { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

.sidebar-popular { background: var(--paper); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; position: sticky; top: 108px; }
.sidebar-hd { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sidebar-hd .dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; display: inline-block; }
.popular-item { display: flex; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--border); align-items: flex-start; transition: background 0.15s; }
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: var(--red-light); }
.popular-num { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; min-width: 22px; line-height: 1.1; color: var(--border); flex-shrink: 0; }
.popular-item:nth-child(-n+4) .popular-num { color: var(--red); }
.popular-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.popular-cat { font-size: 9px; font-weight: 700; letter-spacing: 0.7px; text-transform: uppercase; color: var(--ink-3); }
.popular-title { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.popular-title:hover { color: var(--red); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .hero-sub-grid { grid-column: auto; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .latest-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-sub-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-popular { position: static; }
}


/* ===== CATEGORY HEADER ===== */
.cat-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 24px var(--pad);
  margin-bottom: 0;
}
.cat-header-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    padding: 0 var(--pad);
}
.cat-header-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 900;
  color: var(--ink); line-height: 1;
  display: flex; align-items: center; gap: 12px;
}
.cat-header-title .bar {
  width: 5px; height: 36px;
  background: var(--red); border-radius: 3px; display: inline-block;
}
.cat-header-desc { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.cat-header-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* ===== FILTER BAR ===== */
.filter-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 90;
}
.filter-bar-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; gap: 2px; align-items: center; overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }
.filter-btn {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: var(--ink-3); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s; cursor: pointer;
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: inherit;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ===== LAYOUT: MAIN + SIDEBAR ===== */
.cat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ===== TOP STORY (featured trong danh sách) ===== */
.top-story {
  background: var(--paper);
  border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; display: flex;
  margin-bottom: 16px;
  transition: transform 0.2s;
}
.top-story:hover { transform: translateY(-2px); }
.top-story-cover {
  width: 45%; flex-shrink: 0;
  position: relative;
}
.top-story-cover-inner { position: absolute; inset: 0; }
.top-story-cover-inner img { width: 100%; height: 100%; object-fit: cover; }
.top-story-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.top-story-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }
.top-story-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink);
}
.top-story-title:hover { color: var(--red); }
.top-story-desc { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.top-story-meta { font-size: 12px; color: var(--ink-3); margin-top: auto; }

/* ===== LIST VIEW ===== */
.list-item {
  background: var(--paper);
  border-radius: 10px; border: 1px solid var(--border);
  display: flex; gap: 14px; padding: 14px;
  margin-bottom: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.list-item:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.list-thumb {
  width: 164px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  aspect-ratio: 3/2; position: relative; background: #eee;
}
.list-thumb-inner { position: absolute; inset: 0; }
.list-thumb-inner img { width: 100%; height: 100%; object-fit: cover; }
.list-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.list-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--red); }
.list-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-title:hover { color: var(--red); }
.list-desc { font-size: 13px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-meta { font-size: 11px; color: var(--ink-3); margin-top: auto; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 24px; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--paper);
  color: var(--ink-2); transition: all 0.15s; cursor: pointer;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.page-btn.dots { border: none; background: none; cursor: default; color: var(--ink-3); }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-box { background: var(--paper); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.sidebar-box-hd { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sidebar-box-hd .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

.sidebar-news-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item:hover { background: var(--red-light); }
.sidebar-thumb { width: 56px; height: 42px; border-radius: 5px; overflow: hidden; position: relative; background: #eee; flex-shrink: 0; }
.sidebar-thumb-inner { position: absolute; inset: 0; }
.sidebar-thumb-inner img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-title { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-news-title:hover { color: var(--red); }
.sidebar-news-meta { font-size: 10px; color: var(--ink-3); margin-top: 3px; }

.tag-cloud { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); transition: all 0.15s; }
.tag-chip:hover { background: var(--red); color: #fff; border-color: var(--red); }

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .top-story { flex-direction: column; }
  .top-story-cover { width: 100%; aspect-ratio: 3/2; position: relative; }
}


/* ===== ARTICLE LAYOUT ===== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ===== ARTICLE CONTENT ===== */
.article-content { min-width: 0; }
.article-header { margin-bottom: 24px; }
.article-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 36px);     font-weight: 700;
    line-height: 1.3; color: var(--ink);
  margin-bottom: 16px;
}
.article-desc { font-size: 16px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.article-meta-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 24px; flex-wrap: wrap;
}
.author-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.article-date { font-size: 12px; color: var(--ink-3); }
.article-stats { display: flex; gap: 12px; margin-left: auto; }
.stat { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.stat svg { width: 14px; height: 14px; }

/* COVER IMAGE */
.article-cover {
  position: relative; padding-top: 56.25%;
  border-radius: 12px; overflow: hidden;
  margin-bottom: 8px; background: #eee;
}
.article-cover-inner { position: absolute; inset: 0; }
.article-cover-inner img { width: 100%; height: 100%; object-fit: cover; }
.article-cover-caption { font-size: 12px; color: var(--ink-3); text-align: center; margin-bottom: 28px; font-style: italic; }

/* ARTICLE BODY */
.article-body { font-family: 'Lora', Georgia, serif; font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; line-height: 1.3; }
.article-body h3 { font-family: 'Be Vietnam Pro', sans-serif; font-size: 17px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
.article-body blockquote {
  border-left: 4px solid var(--red); margin: 28px 0;
  padding: 12px 20px; background: var(--red-light); border-radius: 0 8px 8px 0;
}
.article-body blockquote p { margin: 0; font-style: italic; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .highlight-box {
  background: #f0f7ff; border: 1px solid #c5ddf7; border-radius: 10px;
  padding: 16px 20px; margin: 24px 0;
}
.article-body .highlight-box p { margin: 0; font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px; color: #1a4a7a; }

/* TAGS */
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0; }
.article-tags a { font-size: 12px; padding: 4px 12px; border-radius: 20px; background: var(--bg); color: var(--ink-2); border: 1px solid var(--border); transition: all 0.15s; }
.article-tags a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* SHARE */
.share-bar { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.share-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.share-btn { padding: 7px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: opacity 0.15s; }
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877f2; color: #fff; }
.share-tw { background: #000; color: #fff; }
.share-copy { background: var(--bg); color: var(--ink); border: 1px solid var(--border); }

/* RELATED */
.related-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); display: flex; align-items: center; gap: 8px; }
.related-title .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; }

/* SIDEBAR */
.article-sidebar { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-box { background: var(--paper); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.sidebar-box-hd { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.sidebar-box-hd .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.sidebar-news-item { display: flex; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item:hover { background: var(--red-light); }
.sidebar-thumb { width: 56px; height: 42px; border-radius: 5px; overflow: hidden; position: relative; background: #eee; flex-shrink: 0; }
.sidebar-thumb-inner { position: absolute; inset: 0; }
.sidebar-news-title { font-size: 12px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-news-title:hover { color: var(--red); }
.sidebar-news-meta { font-size: 10px; color: var(--ink-3); margin-top: 3px; }

.toc { padding: 14px 16px; }
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { padding-left: 16px; display: flex; flex-direction: column; gap: 8px; }
.toc ol li a { font-size: 13px; color: var(--ink-2); line-height: 1.4; transition: color 0.15s; }
.toc ol li a:hover { color: var(--red); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

/* ===== TOPICS / TAG CLOUD ===== */
.topics-section {
  background: var(--paper);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 24px 24px;
  margin-bottom: 40px;
}
.topics-hd {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.topics-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.topics-title .dot {
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
}
.topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-item {
font-size: 12px;
    font-weight: 500;
    padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--ink-2);
  background: var(--bg);
  transition: all 0.15s;
  white-space: nowrap;
}
.topic-item:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}