/* ═══════════════════════════════════════════════════
   TRI THỨC VIỆT — Main Stylesheet
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Source+Sans+3:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --red:       #d32f2f;
  --red-dark:  #b71c1c;
  --red-light: #ffebee;
  --gold:      #f59f00;
  --ink:       #1a1a2e;
  --ink-60:    #666680;
  --ink-30:    #b3b3c6;
  --paper:     #fafafa;
  --white:     #ffffff;
  --border:    #e8e8f0;
  --shadow:    rgba(26,26,46,0.08);
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'Source Sans 3', system-ui, sans-serif;
  --ff-mono:   'JetBrains Mono', monospace;
  --r:         4px;
  --transition: 0.22s ease;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TOPBAR ─────────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-bottom: 2px solid var(--red);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar a { color: rgba(255,255,255,0.6); }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: 16px; align-items: center; }
.topbar-date { color: rgba(255,255,255,0.4); }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar-right a {
  background: rgba(255,255,255,0.08);
  padding: 3px 10px; border-radius: 2px;
}
.topbar-right a:hover { background: var(--red); color: white; }

/* ── HEADER ─────────────────────────────────────── */
.header {
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--shadow);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--red);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 14px;
  font-family: var(--ff-mono);
  letter-spacing: -1px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(211,47,47,0.35);
}
.logo-text h1 {
  font-family: var(--ff-head);
  font-size: 20px; font-weight: 700;
  color: var(--ink); line-height: 1.1;
}
.logo-text p {
  font-size: 10px; color: var(--ink-60);
  font-family: var(--ff-mono); letter-spacing: 0.08em;
}

.header-search {
  display: flex; align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px;
  gap: 8px;
  width: 240px;
  transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--red); }
.header-search input {
  border: none; outline: none; background: transparent;
  font-family: var(--ff-body); font-size: 13px; color: var(--ink);
  width: 100%;
}
.header-search input::placeholder { color: var(--ink-30); }
.search-icon { color: var(--ink-30); font-size: 14px; flex-shrink: 0; }

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  background: var(--red);
  position: relative;
}
.navbar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: stretch;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 13px 18px;
  color: rgba(255,255,255,0.92);
  font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-link.active {
  background: rgba(0,0,0,0.15);
  border-bottom-color: var(--gold);
  color: white;
}
.nav-link svg { width: 10px; height: 10px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: 100%; left: 0;
  background: white;
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--r) var(--r);
  min-width: 200px;
  box-shadow: 0 8px 24px var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 300;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  color: var(--ink); font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--red-light); color: var(--red); }
.nav-dropdown a::before {
  content: '▸'; color: var(--red); font-size: 10px;
}

/* ── BREAKING / TICKER ──────────────────────────── */
.ticker {
  background: var(--gold);
  padding: 7px 0; overflow: hidden;
}
.ticker-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 14px;
}
.ticker-label {
  background: var(--red);
  color: white; font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em;
  padding: 2px 10px; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.ticker-scroll {
  overflow: hidden; flex: 1;
  -webkit-mask: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.ticker-track {
  display: flex; gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 12.5px; font-weight: 600;
  color: var(--ink); cursor: pointer;
  flex-shrink: 0;
}
.ticker-item:hover { color: var(--red); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── LAYOUT ─────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 30px 0; }
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* ── SECTION TITLE ──────────────────────────────── */
.section-title {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.section-title h2 {
  font-family: var(--ff-head);
  font-size: 22px; font-weight: 700;
  color: var(--ink);
}
.section-title .badge {
  background: var(--red); color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 2px;
  font-family: var(--ff-mono); letter-spacing: 0.06em;
}
.section-title .see-all {
  margin-left: auto;
  font-size: 12px; color: var(--red);
  font-weight: 600; font-family: var(--ff-mono);
}
.section-title .see-all:hover { text-decoration: underline; }

/* ── HERO GRID ──────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2px;
  margin-bottom: 30px;
  border-radius: var(--r);
  overflow: hidden;
}
.hero-main { grid-column: 1; grid-row: 1 / 3; }
.hero-sub1 { grid-column: 2; grid-row: 1; }
.hero-sub2 { grid-column: 2; grid-row: 2; }

.hero-card {
  position: relative; overflow: hidden; cursor: pointer;
  background: #111;
}
.hero-main .hero-card { height: 460px; }
.hero-sub1 .hero-card, .hero-sub2 .hero-card { height: 229px; }

.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.65);
}
.hero-card:hover img { transform: scale(1.04); filter: brightness(0.5); }

.hero-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.hero-main .hero-card-body { padding: 30px; }

.hero-cat {
  display: inline-block;
  background: var(--red);
  color: white; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 2px;
  font-family: var(--ff-mono); letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.hero-card-body h3 {
  font-family: var(--ff-head);
  color: white; line-height: 1.3;
}
.hero-main .hero-card-body h3 { font-size: 24px; }
.hero-sub1 .hero-card-body h3,
.hero-sub2 .hero-card-body h3 { font-size: 15px; }

.hero-meta {
  margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: rgba(255,255,255,0.65);
  font-family: var(--ff-mono);
}

/* ── ARTICLE CARD ───────────────────────────────── */
.article-card {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.article-card:first-child { padding-top: 0; }
.article-card:last-child { border-bottom: none; }
.article-card:hover { }
.article-card:hover .card-title { color: var(--red); }

.card-thumb {
  width: 100px; height: 70px;
  border-radius: var(--r); overflow: hidden;
  flex-shrink: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .card-thumb img { transform: scale(1.05); }

.card-body { display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.card-cat {
  font-size: 10px; font-weight: 700; color: var(--red);
  font-family: var(--ff-mono); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card-title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--ink); transition: color var(--transition);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-30);
  font-family: var(--ff-mono);
}

/* ── FEATURED LIST CARD ─────────────────────────── */
.feat-card {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.feat-card:last-child { border-bottom: none; }
.feat-thumb { width: 160px; height: 105px; border-radius: var(--r); overflow: hidden; }
.feat-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.feat-card:hover .feat-thumb img { transform: scale(1.05); }
.feat-card:hover .feat-title { color: var(--red); }
.feat-body { display: flex; flex-direction: column; gap: 6px; }
.feat-cat { font-size: 10px; font-weight: 700; color: var(--red); font-family: var(--ff-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.feat-title { font-family: var(--ff-head); font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-excerpt { font-size: 14px; color: var(--ink-60); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-meta { display: flex; gap: 10px; font-size: 12px; color: var(--ink-30); font-family: var(--ff-mono); margin-top: auto; }

/* ── SIDEBAR ────────────────────────────────────── */
.sidebar-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-box-title {
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  font-size: 12px; font-weight: 700;
  font-family: var(--ff-mono); letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-box-title::before {
  content: ''; width: 3px; height: 14px; background: var(--gold); border-radius: 2px;
}
.sidebar-list { padding: 8px 0; }
.sidebar-item {
  display: flex; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background var(--transition);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: var(--red-light); }
.sidebar-item:hover .s-title { color: var(--red); }
.s-num {
  font-family: var(--ff-mono); font-size: 18px; font-weight: 700;
  color: var(--border); line-height: 1; flex-shrink: 0; width: 24px;
}
.sidebar-item:hover .s-num { color: var(--red-light); }
.s-body { display: flex; flex-direction: column; gap: 3px; }
.s-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-meta { font-size: 11px; color: var(--ink-30); font-family: var(--ff-mono); }

/* Sidebar with thumb */
.sidebar-item.has-thumb { gap: 10px; }
.s-thumb { width: 70px; height: 48px; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Tags */
.tag-cloud { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  background: var(--paper); border: 1px solid var(--border);
  color: var(--ink-60); font-size: 11.5px; padding: 4px 10px;
  border-radius: 20px; cursor: pointer; transition: all var(--transition);
  font-family: var(--ff-mono);
}
.tag:hover { background: var(--red); border-color: var(--red); color: white; }

/* ── CATEGORY SECTION ───────────────────────────── */
.cat-section { margin-bottom: 36px; }
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.cat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden; cursor: pointer;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cat-card:hover {
  box-shadow: 0 6px 20px var(--shadow);
  transform: translateY(-3px);
}
.cat-card:hover .cat-title { color: var(--red); }
.cat-img { height: 150px; overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-body { padding: 14px; }
.cat-label { font-size: 10px; color: var(--red); font-weight: 700; font-family: var(--ff-mono); letter-spacing: 0.06em; margin-bottom: 6px; }
.cat-title { font-family: var(--ff-head); font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); transition: color var(--transition); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.cat-excerpt { font-size: 12px; color: var(--ink-60); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-footer { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cat-footer-meta { font-size: 11px; color: var(--ink-30); font-family: var(--ff-mono); }

/* ── ARTICLE PAGE ───────────────────────────────── */
.article-header { margin-bottom: 24px; }
.article-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-60);
  font-family: var(--ff-mono); margin-bottom: 16px;
}
.article-breadcrumb span { color: var(--ink-30); }
.article-breadcrumb a:hover { color: var(--red); }

.article-title {
  font-family: var(--ff-head);
  font-size: 32px; font-weight: 700; line-height: 1.25;
  color: var(--ink); margin-bottom: 14px;
}
.article-excerpt {
  font-size: 17px; font-weight: 300; color: var(--ink-60);
  line-height: 1.6; border-left: 3px solid var(--red);
  padding-left: 16px; margin-bottom: 16px;
  font-style: italic;
}
.article-meta-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 12px; color: var(--ink-60); font-family: var(--ff-mono);
  flex-wrap: wrap;
}
.meta-author { color: var(--red); font-weight: 600; }
.meta-sep { color: var(--ink-30); }
.article-hero-img {
  border-radius: var(--r); overflow: hidden;
  margin-bottom: 28px;
  height: 420px;
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 16px; line-height: 1.85; color: var(--ink); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { font-family: var(--ff-head); font-size: 24px; font-weight: 700; margin: 30px 0 14px; color: var(--ink); }
.article-body h3 { font-family: var(--ff-head); font-size: 20px; font-weight: 600; margin: 24px 0 10px; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 18px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { color: var(--red); font-style: italic; }
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 16px 20px;
  background: #fffbf0; border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0; font-style: italic; font-size: 17px;
  color: var(--ink-60);
}

/* ── PAGE LISTING ───────────────────────────────── */
.page-header {
  background: var(--ink); color: white;
  padding: 30px 0; margin-bottom: 30px;
}
.page-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-header h1 { font-family: var(--ff-head); font-size: 28px; font-weight: 700; }
.page-header p { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px; font-family: var(--ff-mono); }

.listing-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ── PAGINATION ─────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin: 30px 0;
}
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r);
  border: 1px solid var(--border);
  background: white; cursor: pointer;
  font-size: 13px; font-family: var(--ff-mono);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--ink);
}
.page-btn:hover, .page-btn.active {
  background: var(--red); border-color: var(--red); color: white;
}

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 40px 0 0;
  margin-top: 50px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px; padding-bottom: 30px;
}
.footer-brand h2 {
  font-family: var(--ff-head); font-size: 22px;
  color: white; margin-bottom: 10px;
}
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.footer-col h3 {
  color: white; font-size: 12px; font-weight: 700;
  font-family: var(--ff-mono); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.35);
  font-family: var(--ff-mono);
}
.footer-bottom a { color: var(--gold); }

/* ── BACK TO TOP ────────────────────────────────── */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--red); color: white;
  border-radius: 50%; border: none; cursor: pointer;
  font-size: 16px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(211,47,47,0.4);
  opacity: 0; transform: translateY(10px);
  transition: all var(--transition);
  z-index: 100;
}
.back-top.visible { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--red-dark); transform: translateY(-2px); }

/* ── LOADING ────────────────────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--ink-30); font-family: var(--ff-mono); font-size: 12px;
}
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--red); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── VIEW COUNTER ───────────────────────────────── */
.views-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--ff-mono); font-size: 11px; color: var(--ink-30);
}

/* ── SEARCH RESULTS ─────────────────────────────── */
.search-bar-full {
  background: var(--ink); padding: 20px 0; margin-bottom: 24px;
}
.search-input-full {
  display: flex; gap: 10px; align-items: center;
  max-width: 600px;
}
.search-input-full input {
  flex: 1; padding: 12px 18px; border-radius: var(--r);
  border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: white; font-size: 15px; font-family: var(--ff-body); outline: none;
}
.search-input-full input:focus { border-color: var(--gold); }
.search-input-full input::placeholder { color: rgba(255,255,255,0.3); }
.search-input-full button {
  background: var(--red); color: white; border: none;
  padding: 12px 24px; border-radius: var(--r);
  font-weight: 600; cursor: pointer; font-family: var(--ff-body);
  font-size: 14px; transition: background var(--transition);
}
.search-input-full button:hover { background: var(--red-dark); }

/* ── MOBILE MENU ────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { padding: 0 16px; }
  .header-search { display: none; }
  .hamburger { display: flex; }
  .navbar { display: none; }
  .navbar.open { display: block; }
  .navbar-inner { flex-direction: column; }
  .nav-link { color: #ffffff !important; font-size: 15px; }
  .nav-link:hover, .nav-link.active { color: #ffffff !important; background: rgba(0,0,0,0.2); border-bottom-color: var(--gold); }
  .nav-link svg { stroke: #ffffff !important; }
  .nav-dropdown { position: static; opacity: 1; pointer-events: all; transform: none; box-shadow: none; border: none; border-top: 1px solid rgba(255,255,255,0.15); background: rgba(0,0,0,0.18); }
  .nav-dropdown a { padding-left: 32px; background: transparent !important; color: #ffffff !important; border-bottom-color: rgba(255,255,255,0.08); font-size: 14px; }
  .nav-dropdown a::before { color: rgba(255,255,255,0.6) !important; }
  .nav-dropdown a:hover { background: rgba(0,0,0,0.25) !important; color: #ffffff !important; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main, .hero-sub1, .hero-sub2 { grid-column: 1; grid-row: auto; }
  .hero-main .hero-card { height: 300px; }
  .hero-sub1 .hero-card, .hero-sub2 .hero-card { height: 210px; }
  .hero-card-body h3 { color: #fff !important; text-shadow: 0 1px 4px rgba(0,0,0,0.7); }
  .hero-cat { color: #fff !important; }
  .hero-meta { color: rgba(255,255,255,0.85) !important; }
  .ticker-item { color: var(--ink); font-size: 13px; }
  .cat-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .feat-card { grid-template-columns: 120px 1fr; }
  .feat-thumb { width: 120px; height: 85px; }
  .feat-title { font-size: 15px; }
  .feat-excerpt { font-size: 13px; }
  .article-title { font-size: 24px; }
  .article-hero-img { height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .layout { padding: 16px 0; }
  .container { padding: 0 16px; }
  .s-title { font-size: 14px; }
  .section-title h2 { font-size: 19px; }
  .logo-text h1 { font-size: 17px; }
}
