/*
Theme Name: Bản Tin
Theme URI: https://blog.cuonghai.com
Description: Custom Vietnamese news/magazine theme — deep navy + gold accent
Version: 1.0.0
Author: Cường Hải
Text Domain: bantin
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --navy-950: #0A1424;
  --navy-900: #0F1D33;
  --navy-800: #16263F;
  --navy-700: #21344F;
  --navy-600: #2F476A;
  --navy-100: #E7ECF3;
  --navy-50:  #F2F5F9;
  --gold-600: #B8801F;
  --gold-500: #E0A43B;
  --gold-400: #EBB85C;
  --gold-100: #FBEFD6;
  --gold-50:  #FDF7EC;
  --red-600:  #C5362B;
  --red-50:   #FBEAE8;
  --ink-900: #131820;
  --ink-800: #232A33;
  --ink-700: #3C444F;
  --ink-500: #6A7280;
  --ink-400: #98A0AC;
  --line:    #E5E8ED;
  --line-strong: #D2D7DF;
  --surface: #FFFFFF;
  --surface-muted: #F6F8FA;
  --surface-sunken: #EDF0F4;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-display: 44px;
  --fs-h1: 30px;
  --fs-h2: 23px;
  --fs-h3: 19px;
  --fs-h4: 16px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-meta: 13px;
  --fs-kicker: 12px;
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --s12: 48px; --s16: 64px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15,29,51,.06), 0 1px 1px rgba(15,29,51,.04);
  --shadow-md: 0 4px 14px rgba(15,29,51,.08), 0 1px 3px rgba(15,29,51,.05);
  --shadow-lg: 0 18px 48px rgba(15,29,51,.16);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.22; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s6); }

/* ---- Kicker ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-kicker); font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-600);
}

/* ---- Section head ---- */
.section-head { display: flex; align-items: center; gap: var(--s4); margin: 0 0 var(--s5); }
.section-head__title {
  display: inline-flex; align-items: center;
  font-size: var(--fs-h1); font-weight: 800; color: var(--navy-800);
  letter-spacing: -0.02em; position: relative; padding-left: 16px;
}
.section-head__title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 5px; border-radius: 3px; background: var(--gold-500);
}
.section-head__rule { flex: 1; height: 1px; background: var(--line-strong); }
.section-head__more {
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.section-head__more:hover { color: var(--gold-600); }

/* ---- Widget head ---- */
.widget-head {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: var(--s3); margin-bottom: var(--s4);
  border-bottom: 2px solid var(--navy-800);
}
.widget-head__title { font-size: var(--fs-h3); font-weight: 800; color: var(--navy-800); letter-spacing: -0.01em; }
.widget-head__bar { width: 5px; height: 20px; border-radius: 3px; background: var(--gold-500); }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-sm); line-height: 1;
}
.badge--breaking { background: var(--red-600); color: #fff; }
.badge--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---- Placeholder ---- */
.ph {
  position: relative; background: var(--surface-sunken);
  overflow: hidden; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--ink-400);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,29,51,.03) 25%, transparent 25%) 0 0/24px 24px,
    linear-gradient(225deg, rgba(15,29,51,.03) 25%, transparent 25%) 0 0/24px 24px;
}
.ph svg { width: 34px; height: 34px; opacity: .55; position: relative; z-index: 1; }
.ph--ratio-16-9 { aspect-ratio: 16 / 9; }
.ph--ratio-4-3  { aspect-ratio: 4 / 3; }
.ph--ratio-3-2  { aspect-ratio: 3 / 2; }

/* ---- Meta ---- */
.meta { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-meta); color: var(--ink-500); font-weight: 500; }
.meta__cat { color: var(--gold-600); font-weight: 700; }
.meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-400); }

/* ---- Hero card ---- */
.card-hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); aspect-ratio: 16 / 10; display: block;
}
.card-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,36,.92) 0%, rgba(10,20,36,.55) 38%, rgba(10,20,36,0) 70%);
}
.card-hero__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s8);
  display: flex; flex-direction: column; gap: var(--s3);
}
.card-hero__title { color: #fff; font-size: 32px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; max-width: 90%; }
.card-hero .meta { color: rgba(255,255,255,.78); }
.card-hero:hover .card-hero__title { color: var(--gold-400); transition: color .18s; }

/* ---- Vertical card ---- */
.card-v { display: flex; flex-direction: column; gap: var(--s3); }
.card-v__title { font-size: var(--fs-h4); font-weight: 700; color: var(--ink-900); line-height: 1.32; }
.card-v:hover .card-v__title { color: var(--navy-700); }
.card-v__excerpt { font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.55; }

/* ---- Row card ---- */
.card-row {
  display: grid; grid-template-columns: 132px 1fr; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.card-row:first-child { padding-top: 0; }
.card-row__title { font-size: var(--fs-h4); font-weight: 700; color: var(--ink-900); line-height: 1.34; margin-bottom: 6px; }
.card-row:hover .card-row__title { color: var(--navy-700); }
.card-row__excerpt {
  font-size: var(--fs-sm); color: var(--ink-500); line-height: 1.55; margin: 6px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- Text item ---- */
.item-text { display: flex; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.item-text:last-child { border-bottom: 0; }
.item-text__title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); line-height: 1.4; }
.item-text:hover .item-text__title { color: var(--gold-600); }

/* ---- Rank list ---- */
.rank-item { display: flex; gap: var(--s4); align-items: flex-start; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-item__num { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--gold-500); width: 28px; flex: none; text-align: center; }
.rank-item__title { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-900); line-height: 1.42; padding-top: 2px; }
.rank-item:hover .rank-item__title { color: var(--navy-700); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: var(--fs-sm); font-weight: 600;
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--accent { background: var(--gold-500); color: var(--navy-950); }
.btn--accent:hover { background: var(--gold-400); }
.btn--ghost { background: transparent; color: var(--navy-700); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-800); }

/* ---- Topbar ---- */
.topbar { background: var(--navy-950); color: rgba(255,255,255,.66); font-size: var(--fs-meta); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar__date { display: flex; align-items: center; gap: 8px; }
.topbar__links { display: flex; align-items: center; gap: var(--s5); }
.topbar a:hover { color: var(--gold-400); }

/* ---- Masthead ---- */
.masthead { background: var(--navy-800); color: #fff; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; padding: var(--s5) 0; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.brand__word { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #fff; display: inline-flex; align-items: baseline; }
.brand__word .dot { color: var(--gold-500); }
.brand__tag { font-size: var(--fs-kicker); letter-spacing: .04em; font-weight: 500; color: rgba(255,255,255,.62); }
.masthead__actions { display: flex; align-items: center; gap: var(--s3); }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: background .15s;
}
.icon-btn:hover { background: rgba(255,255,255,.18); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---- Primary nav ---- */
.nav {
  background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40; box-shadow: var(--shadow-sm);
}
.nav__inner { display: flex; align-items: center; gap: var(--s2); height: 56px; }
.nav__list { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 var(--s4); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800);
  position: relative;
}
.nav__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav__link::after {
  content: ""; position: absolute; left: var(--s4); right: var(--s4); bottom: 0;
  height: 3px; background: var(--gold-500); transform: scaleX(0); transition: transform .18s;
  border-radius: 2px 2px 0 0;
}
.nav__item:hover .nav__link::after,
.nav__link--active::after { transform: scaleX(1); }
.nav__item:hover .nav__link,
.nav__link--active { color: var(--navy-800); }

.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow-lg);
  padding: var(--s2); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 50;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); }
.nav__dropdown a:hover { background: var(--navy-50); color: var(--gold-600); padding-left: 18px; }

.nav__spacer { flex: 1; }
.nav__search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  color: var(--ink-500); font-size: var(--fs-sm); min-width: 200px;
}
.nav__search svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav__search input { border: 0; outline: 0; font-family: var(--font); font-size: var(--fs-sm); color: var(--ink-800); background: transparent; width: 100%; }
.nav__hamburger { display: none; background: none; border: none; cursor: pointer; padding: var(--s2); color: var(--ink-800); }

/* ---- Homepage layout ---- */
.hero-grid {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--s5);
  margin: var(--s8) 0 var(--s10);
}
.hero-side { display: flex; flex-direction: column; gap: var(--s4); }
.hero-side .card-row { padding: 0; border: 0; grid-template-columns: 116px 1fr; }
.hero-side .card-row:not(:last-child) { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }

.strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5);
  padding: var(--s6) 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin-bottom: var(--s10);
}

.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s10); }
@media (max-width: 600px) {

  .sidebar .widget { flex: 1 1 100%; }
  .card-row { grid-template-columns: 96px 1fr; gap: var(--s3); }
  .card-row__title { font-size: 14px; line-height: 1.4; }
  .card-row__excerpt { display: none !important; }
}
.sidebar { display: flex; flex-direction: column; gap: var(--s10); }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); }

.ent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.section-block { margin-top: var(--s12); }

.load-more { display: flex; justify-content: center; margin-top: var(--s6); }
.newsletter { background: var(--navy-800); border-radius: var(--r-lg); padding: var(--s6); color: #fff; }
.newsletter h4 { color: #fff; font-size: var(--fs-h3); margin-bottom: 6px; }
.newsletter p { font-size: var(--fs-sm); color: rgba(255,255,255,.72); margin-bottom: var(--s4); }
.newsletter__form { display: flex; gap: 8px; }
.newsletter__form input { flex: 1; border: 0; border-radius: var(--r-pill); padding: 10px 16px; font-family: var(--font); font-size: var(--fs-sm); outline: 0; }

/* ---- Footer ---- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.62); margin-top: var(--s16); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s8); padding: var(--s12) 0 var(--s10); }
\n.footer__brand .brand__word { font-size: 28px; }
.footer__about { font-size: var(--fs-sm); line-height: 1.6; margin-top: var(--s4); max-width: 320px; }
.footer__col h4 { color: #fff; font-size: var(--fs-h4); margin-bottom: var(--s4); font-weight: 700; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: var(--fs-sm); color: rgba(255,255,255,.66); }
.footer__col a:hover { color: var(--gold-400); }
.footer__socials { display: flex; gap: 10px; margin-top: var(--s5); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: var(--s5) 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-meta);
}

/* ---- Single post ---- */
.post-header { padding: var(--s10) 0 var(--s8); }
.post-header .kicker { margin-bottom: var(--s3); }
.post-title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: var(--s4); }
.post-meta { margin-bottom: var(--s6); }
.post-thumbnail { border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--s8); aspect-ratio: 16/9; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.post-content { max-width: 740px; font-size: 17px; line-height: 1.8; color: var(--ink-700); }
.post-content h2 { font-size: var(--fs-h2); font-weight: 800; margin: var(--s8) 0 var(--s4); }
.post-content h3 { font-size: var(--fs-h3); font-weight: 700; margin: var(--s6) 0 var(--s3); }
.post-content h4 { font-size: var(--fs-h4); font-weight: 700; margin: var(--s5) 0 var(--s3); }
.post-content p, .post-content .wp-block-paragraph, .entry-content p { margin: 0 0 1.2rem; text-indent: 0; text-align: justify; hyphens: auto; line-height: 1.8; }
.post-content ul, .post-content ol { padding-left: var(--s6); margin-bottom: var(--s5); }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: var(--s2); font-size: 17px; line-height: 1.8; }
.post-content img { border-radius: var(--r-md); width: 100%; height: auto; margin: var(--s5) 0; display: block; }
.post-content figure { margin: var(--s5) 0; }
.post-content figcaption { font-size: var(--fs-sm); color: var(--ink-400); text-align: center; margin-top: var(--s2); }
.post-content blockquote { border-left: 3px solid var(--gold-500); margin: var(--s6) 0; padding: var(--s3) var(--s5); background: var(--gold-50); font-style: italic; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: var(--s10); align-items: start; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: flex; flex-direction: column; gap: 0; margin-top: var(--s5); }
  .hero-side .card-row { grid-template-columns: 120px 1fr; padding: 0; border: 0; }
  .hero-side .card-row:not(:last-child) { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .main-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .ent-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .nav__search { min-width: 160px; }
}

@media (max-width: 768px) {
  :root {
    --fs-display: 28px;
    --fs-h1: 22px;
    --fs-h2: 18px;
    --fs-h3: 16px;
  }
  .container { padding: 0 var(--s4); }
  .topbar__links { display: none; }
  .masthead__actions { display: none; }
  .brand__tag { display: none; }
  .nav__search { display: none; }
  .nav__hamburger { display: flex; }
  .nav__list {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--s4); z-index: 100; box-shadow: var(--shadow-lg);
    gap: 0; height: auto;
  }
  .nav__list--open { display: flex; }
  .nav__item { height: auto; width: 100%; }
  .nav__link { height: 44px; width: 100%; padding: 0 var(--s4); }
  .nav__link::after { display: none; }
  .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: var(--navy-50); margin-top: 4px; display: none; }
  .nav__item:hover .nav__dropdown { display: block; }
  .hero-grid { margin: var(--s5) 0 var(--s8); }
  .hero-side { grid-template-columns: 1fr; gap: 0; }
  .hero-side .card-row { grid-template-columns: 80px 1fr; }
  .hero-side .card-row:not(:last-child) { padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
  .strip { grid-template-columns: 1fr; gap: var(--s4); }
  .card-hero__title { font-size: 20px; }
  .card-hero__body { padding: var(--s5); }
  .main-grid { gap: var(--s8); }
  .sidebar { grid-template-columns: 1fr; }
  .ent-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 20px 16px; padding: 24px 20px 20px !important; margin: 0 !important; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__about { display: none; }
  .footer__col:last-child { display: none; }
  .footer__socials { display: none; }
  .footer__col h4 { font-size: 14px; margin-bottom: 12px; }
  .footer__col a, .footer__col li { font-size: 13px; }
  .footer__col ul { gap: 10px; }
  .footer__bottom { flex-direction: column; gap: 4px; text-align: center; font-size: 11px; padding: 12px 16px; }
  .post-title { font-size: 22px; }
  .post-header { padding: 12px 0 8px; }
  .post-title { margin-bottom: 12px; }
  .share-bar { margin: 8px 0 10px; gap: 6px; }
  .share-btn { padding: 6px 12px; font-size: 13px; }
  .post-meta { margin-bottom: 12px; font-size: 12px; }
  .breadcrumb { margin-bottom: 8px; font-size: 12px; }
  .section-head__title { font-size: var(--fs-h2); }
  .card-row { grid-template-columns: 88px 1fr; gap: var(--s3); }
}


/* Dropdown menu */
.nav__item--has-children {
  position: relative;
}
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border-top: 2px solid #e53935;
  list-style: none;
  padding: 8px 0;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
}
.nav__item--has-children:hover .nav__dropdown {
  display: block;
}
.nav__dropdown-item a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s;
}
.nav__dropdown-item a:hover {
  background: #f5f5f5;
  color: #e53935;
  padding-left: 26px;
}
/* ===== FIX DROPDOWN STYLE ===== */
.sub-menu {
  list-style: none !important;
  padding: 8px 0 !important;
  margin: 0 !important;
}

.sub-menu li {
  display: block !important;
  width: 100%;
}

.sub-menu li a {
  display: block !important;
  padding: 10px 20px !important;
  white-space: nowrap;
  font-size: 14px;
  color: #d4dbe6 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
}

.sub-menu li a:hover {
  color: #E0A43B !important;
  background: rgba(224,164,59,0.08) !important;
  padding-left: 26px !important;
  border-left: 3px solid #E0A43B;
}
/* ===== PAGINATION ===== */
.pagination,
.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: var(--s8) 0;
}
.page-numbers {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.page-numbers.current {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.page-numbers:hover:not(.current) {
  background: var(--navy-50);
  color: var(--navy-700);
}
.page-numbers.dots {
  background: transparent;
  border: none;
  pointer-events: none;
}
/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 1024px) {
  .strip { margin-top: var(--s6); }
  .section-block { margin-top: var(--s8); }
  .hero-side .card-row { gap: var(--s3); }
}
@media (max-width: 768px) {
  .strip { margin-top: var(--s5); }
  .strip .card-v__title { font-size: var(--fs-h4); }
  .card-row__title { font-size: 15px; }
  .section-head__title { font-size: 16px; }
  .section-block { margin-top: var(--s6); }
  .card-row__excerpt { display: none; }
  .hero-side { margin-top: var(--s4); }
  .card-hero { min-height: 260px; }
}
/* ===== MOBILE HEADER: logo + hamburger same row ===== */
.masthead__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  flex-shrink: 0;
  margin-left: auto;
}
@media (max-width: 768px) {
  .masthead__hamburger { display: flex; }
  .masthead__actions { display: none; }
  .masthead__inner { padding: 10px 0; }
  .nav__hamburger { display: none !important; }
  .nav { border-bottom: none; box-shadow: none; }
  .nav__inner { height: 0 !important; min-height: 0 !important; overflow: visible !important; }
  .nav__list {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 200;
  }
}


/* ===== HEADER RESPONSIVE — FINAL FIX ===== */

/* 1. Always hide social icons + duplicate masthead hamburger */
.masthead__actions,
.masthead__hamburger { display: none !important; }

/* 2. Nav brand (logo in nav bar — mobile only) */
.nav__brand {
  display: none;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav__brand .brand__word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-900);
  display: inline-flex;
  align-items: baseline;
}
.nav__brand .dot { color: var(--gold-500); }

/* 3. Desktop (min-width 769px): normal horizontal menu, no hamburger */
@media (min-width: 769px) {
  .nav__hamburger { display: none !important; }
  .nav__brand    { display: none !important; }
  .nav__inner    { height: 56px !important; overflow: visible !important; }
  .nav__list     {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    height: 100%;
  }
}

/* 4. Mobile (max-width 768px): logo-left + hamburger-right in nav */
@media (max-width: 768px) {
  .masthead      { display: none !important; }
  .nav__brand    { display: flex !important; }
  .nav__hamburger{ display: flex !important; }
  .nav__inner    { height: 56px !important; min-height: 56px !important; overflow: visible !important; }
  .nav__list     {
    position: absolute !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    display: none !important;
    flex-direction: column !important;
    height: auto !important;
  }
  .nav__list.nav__list--open { display: flex !important; }
}

/* ============================================
   MOBILE — theo chuẩn blogtamsu.vn
   CHỆ ẢNH HƯỜNG ≤768px — desktop không bị đụng
   ============================================ */
@media (max-width: 768px) {

  /* --- Container --- */
  .container { padding: 0 10px; }

  /* --- Hero: 1 cột, ảnh lớn trên --- */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 8px 0 10px;
  }
  .card-hero { min-height: 190px; border-radius: 6px; }
  .card-hero__title { font-size: 20px !important; line-height: 1.3; }
  .card-hero__body { padding: 10px 12px 14px; }
  .hero-side { margin-top: 0; gap: 0; }
  .hero-side .card-row {
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 10px 0;
    align-items: flex-start;
  }
  .hero-side .card-row > div:first-child {
    width: 120px !important;
    height: 80px !important;
    border-radius: 4px !important;
  }
  .hero-side .card-row__title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- Strip: 2 cột --- */
  .strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 0;
    margin-bottom: 12px;
  }
  .strip .card-v__title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 5px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .strip .kicker { font-size: 11px; margin-top: 5px; }

  /* --- Main grid: 1 cột, ẩn sidebar --- */
  .main-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar { display: none !important; }

  /* --- Section head --- */
  .section-head {
    margin-bottom: 6px !important;
    padding-bottom: 8px;
  }
  .section-head__title { font-size: 15px; font-weight: 800; }
  .section-head__more { font-size: 12px; }

  /* --- POST LIST — ảnh lớn + chữ to dễ đọc theo blogtamsu --- */
  .card-row {
    grid-template-columns: 120px 1fr;
    gap: 10px;
    padding: 10px 0;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
  }
  .card-row > div:first-child {
    height: 80px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
  }
  .card-row > div:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .card-row__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
    color: #1a1a2e;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card-row__excerpt { display: none !important; }
  .meta { font-size: 11px; gap: 4px; margin-top: 4px; }
  .meta__cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #1565C0;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .meta__dot { display: none; }
  .kicker {
    font-size: 11px;
    font-weight: 700;
    color: #1565C0 !important;
    letter-spacing: 0.2px;
  }

  /* --- Section block (ent-grid) --- */
  .section-block { margin-top: 16px; }
  .ent-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .ent-grid .card-v__title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ent-grid .card-v__excerpt { display: none !important; }

  /* --- Load more --- */
  .load-more { padding: 14px 0 6px; }
  .btn { padding: 9px 24px; font-size: 14px; border-radius: 4px; }

  /* --- Newsletter --- */
  .newsletter { padding: 16px; }
  .newsletter h4 { font-size: 15px; margin-bottom: 6px; }
  .newsletter p { font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
  .newsletter__form { flex-direction: column; gap: 8px; }
  .newsletter__form input { width: 100%; }
  .newsletter__form .btn { width: 100%; }

  /* --- Footer compact 2x2 --- */
  .footer { margin-top: 24px; }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    padding: 20px 0 14px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand .brand__word { font-size: 20px; }
  .footer__about { font-size: 12px; line-height: 1.5; margin-top: 6px; max-width: 100%; }
  .footer__socials { margin-top: 8px; }
  .footer__col h4 { font-size: 13px; margin-bottom: 8px; }
  .footer__col ul { gap: 7px; }
  .footer__col a { font-size: 12px; }
  .footer__bottom {
    flex-direction: column;
    gap: 3px;
    text-align: center;
    padding: 12px 0;
    font-size: 11px;
  }

  /* --- Typography --- */
  :root {
    --fs-display: 24px;
    --fs-h1: 20px;
    --fs-h2: 18px;
    --fs-h3: 16px;
    --fs-h4: 15px;
    --fs-sm: 14px;
    --fs-meta: 12px;
  }
}

/* === Tablet 769–1024px: giữ desktop, chỉ thu nhỏ nhẹ === */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-grid { grid-template-columns: 1fr 280px; gap: 20px; }
  .footer__top { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 16px; }
}


/* === SOURCE META: desktop/mobile toggle === */
.meta--mobile { display: none; }
.meta--desktop { display: inline-flex; }

.source-name {
  font-size: 12px;
  font-weight: 700;
  color: #1565C0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.source-sep {
  color: #999;
  font-size: 11px;
  margin: 0 1px;
}

@media (max-width: 768px) {
  .meta--desktop { display: none !important; }
  .meta--mobile {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 4px;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
  }
  .meta--mobile .source-name {
    font-size: 11px;
    font-weight: 700;
    color: #1565C0;
    text-transform: uppercase;
  }
  .meta--mobile span:last-child {
    color: #999;
    font-size: 11px;
  }
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-400); margin-bottom: var(--s4); flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-500); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb__sep { color: var(--ink-300); font-size: 14px; }
.breadcrumb a:last-child { color: var(--navy-700); font-weight: 600; }
