/* =========================================
   MoBan News — Design System v2
   Guideline: moban-redesign-guideline-new-1007
   ========================================= */

:root {
  --navy-900: #0B2A57;
  --navy-700: #12417F;
  --cyan-500: #1AAEE0;
  --cyan-100: #DCF1FA;
  --coral: #E1503F;
  --coral-dark: #C9392A;
  --coral-100: #FBE1DE;
  --purple: #6B3FA0;
  --purple-100: #EFE7FB;
  --ink: #101826;
  --slate: #6B7280;
  --slate-100: #E7E9EC;
  --line: #DCE3EA;
  --mist: #EFF3F8;
  --paper: #FAFBFC;
  --white: #fff;
  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.section { padding: 56px 0; }
.section--mist { background: var(--mist); }

/* ====== HEADER ====== */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header .wrap { display: flex; align-items: center; height: 56px; gap: 20px; }
.header__logo img { height: 32px; }
.header__logo span { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--navy-900); }
.header__nav { display: flex; gap: 2px; margin-left: auto; }
.header__nav a { font-size: 14px; font-weight: 500; color: var(--slate); padding: 6px 12px; border-radius: var(--radius); transition: all .15s; }
.header__nav a:hover { color: var(--navy-900); background: var(--mist); }
.header__nav a.active { color: var(--navy-900); font-weight: 600; background: var(--cyan-100); }
.header__cta { font-size: 13px; font-weight: 600; background: var(--coral); color: #fff; padding: 7px 16px; border-radius: var(--radius); white-space: nowrap; transition: background .15s; border: none; cursor: pointer; }
.header__cta:hover { background: var(--coral-dark); }

/* ====== KICKER / EYEBROW ====== */
.kicker { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan-500); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.section-header h2 { font-size: 22px; color: var(--navy-900); }
.section-header a { font-size: 13px; font-weight: 600; color: var(--cyan-500); white-space: nowrap; font-family: var(--font-mono); }
.section-header a:hover { text-decoration: underline; }

/* ====== CATEGORY TAGS (color-coded per guideline) ====== */
.cat-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 100px; display: inline-block; line-height: 1.3; }
.cat-tag--thitruong  { background: var(--cyan-100);   color: var(--navy-900); }
.cat-tag--chinhsach  { background: var(--slate-100);   color: #3F4650; }
.cat-tag--kienthuc   { background: var(--coral-100);   color: #7A2A20; }
.cat-tag--nhanvat    { background: var(--purple-100);  color: #4B2A85; }

/* ====== HERO — Featured + Most Read ====== */
.hero { padding: 20px 0 0; }
.hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; min-height: 380px; }
.hero__featured { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.hero__featured img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hero__featured:hover img { transform: scale(1.03); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,42,87,.88) 0%, rgba(11,42,87,.15) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; }
.hero__overlay .cat-tag { margin-bottom: 10px; }
.hero__overlay h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.hero__overlay p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 8px; line-height: 1.5; }
.hero__overlay time { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.45); }

/* Most-read sidebar */
.hero__sidebar { background: var(--mist); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; }
.hero__sidebar h3 { font-size: 14px; color: var(--navy-900); margin-bottom: 14px; font-weight: 700; }
.rank-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: none; }
.rank-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--coral); min-width: 28px; line-height: 1; }
.rank-item h4 { font-size: 14px; font-weight: 600; color: var(--navy-900); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-item time { font-family: var(--font-mono); font-size: 11px; color: var(--slate); margin-top: 4px; display: block; }
.rank-item:hover h4 { color: var(--cyan-500); }

/* ====== CATEGORY TABS ====== */
.cat-tabs { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.cat-tab { font-size: 13px; font-weight: 500; color: var(--slate); padding: 7px 16px; border-radius: 100px; border: 1px solid var(--line); transition: all .15s; white-space: nowrap; }
.cat-tab:hover { color: var(--navy-900); border-color: var(--navy-900); }
.cat-tab.active { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); }

/* ====== NEWS CARD (ncard) ====== */
.news-grid { display: grid; gap: 16px; }
.news-grid--4 { grid-template-columns: repeat(4, 1fr); }
.news-grid--3 { grid-template-columns: repeat(3, 1fr); }

.ncard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; }
.ncard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,42,87,.07); }
.ncard__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ncard:hover .ncard__img img { transform: scale(1.03); }
.ncard__img .cat-tag { position: absolute; top: 8px; left: 8px; }
.ncard__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.ncard__title { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--navy-900); line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__excerpt { font-size: 13px; color: var(--slate); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.ncard__meta { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: #8A9AA8; }
.ncard__avatar { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan-500); flex-shrink: 0; }

/* ====== NEWSLETTER CTA ====== */
.cta-newsletter { background: var(--coral-100); border: 1px solid var(--coral); border-radius: var(--radius-lg); padding: 36px 40px; display: flex; align-items: center; gap: 36px; }
.cta-newsletter__text { flex: 1; }
.cta-newsletter__text h2 { font-size: 22px; color: var(--navy-900); margin-bottom: 6px; }
.cta-newsletter__text p { font-size: 14px; color: #7A2A20; }
.cta-newsletter__form { flex: 1; }
.cta-newsletter__row { display: flex; gap: 8px; flex-wrap: wrap; }
.cta-newsletter__row .form-control { flex: 1; min-width: 130px; }

/* ====== PAGE HERO (for list/category pages) ====== */
.page-hero { background: var(--navy-900); color: #fff; padding: 32px 0; }
.page-hero h1 { font-size: 26px; margin-bottom: 4px; }
.page-hero p { font-size: 14px; color: rgba(255,255,255,.55); }

/* ====== BREADCRUMB ====== */
.breadcrumb { font-size: 13px; color: var(--slate); margin-bottom: 10px; }
.breadcrumb a { color: var(--cyan-500); }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero .breadcrumb { color: rgba(255,255,255,.45); }
.page-hero .breadcrumb a { color: var(--cyan-100); }

/* ====== LIST PAGE (newspaper-style 2-column) ====== */
.list-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.list-items { display: flex; flex-direction: column; gap: 0; }
.list-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background .15s; }
.list-item:hover { background: var(--mist); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius); }
.list-item__img { width: 160px; min-width: 160px; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; }
.list-item__img img { width: 100%; height: 100%; object-fit: cover; }
.list-item__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.list-item__body .cat-tag { margin-bottom: 6px; }
.list-item__body h3 { font-size: 16px; font-weight: 600; color: var(--navy-900); line-height: 1.35; margin-bottom: 6px; }
.list-item__body p { font-size: 13px; color: var(--slate); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.list-item__meta { font-family: var(--font-mono); font-size: 12px; color: #8A9AA8; display: flex; gap: 8px; align-items: center; }

/* ====== ARTICLE DETAIL ====== */
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.article-cover img { width: 100%; max-height: 440px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.article-main { min-width: 0; }
.article-hero { margin-bottom: 20px; }
.article-hero h1 { font-size: 28px; color: var(--navy-900); margin: 8px 0 12px; }
.article-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--slate); font-family: var(--font-mono); flex-wrap: wrap; }
.article-body { font-size: 15px; line-height: 1.8; color: #3A4657; }
.article-body h2 { font-size: 22px; color: var(--navy-900); margin: 28px 0 12px; }
.article-body h3 { font-size: 18px; color: var(--navy-900); margin: 22px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--navy-900); }

/* Share + Tags bar */
.article-share { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.share-btns { display: flex; gap: 8px; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; transition: all .15s; color: var(--navy-700); }
.share-btn:hover { background: var(--cyan-100); border-color: var(--cyan-500); }
.article-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--navy-700); background: var(--cyan-100); padding: 4px 11px; border-radius: 100px; }

/* ====== SIDEBAR ====== */
.sidebar { position: sticky; top: 72px; }
.sidebar-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; margin-bottom: 16px; }
.sidebar-block h3 { font-size: 15px; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }

/* Author box */
.author-box { text-align: center; padding: 20px 18px; }
.author-box__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan-500); margin: 0 auto 10px; }
.author-box__name { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--navy-900); }
.author-box__role { font-size: 12px; color: var(--slate); font-family: var(--font-mono); }

/* Sidebar items */
.sidebar-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mist); transition: all .15s; }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover .sidebar-item__title { color: var(--cyan-500); }
.sidebar-item__thumb { width: 52px; min-width: 52px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.sidebar-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-item__title { font-size: 13px; font-weight: 600; color: var(--navy-900); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sidebar-item__date { font-family: var(--font-mono); font-size: 11px; color: #8A9AA8; margin-top: 3px; display: block; }

/* ====== FORMS ====== */
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-900); margin-bottom: 3px; }
.form-control { width: 100%; font-family: var(--font-body); font-size: 14px; padding: 9px 13px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border .15s; }
.form-control:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(26,174,224,.12); }
textarea.form-control { min-height: 70px; resize: vertical; }
.btn { font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 9px 20px; border: none; border-radius: var(--radius); cursor: pointer; transition: all .15s; display: inline-block; text-align: center; }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--coral-dark); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-900); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--mist); }

/* ====== PAGINATION ====== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { font-family: var(--font-mono); font-size: 13px; padding: 7px 13px; border-radius: var(--radius); border: 1px solid var(--line); color: var(--slate); transition: all .15s; }
.pagination a:hover { background: var(--mist); color: var(--navy-900); }
.pagination span.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* ====== FOOTER ====== */
.footer { background: var(--navy-900); color: #fff; padding: 44px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--cyan-100); text-transform: uppercase; letter-spacing: .04em; }
.footer p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.55; }
.footer ul li { margin-bottom: 5px; }
.footer ul a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer ul a:hover { color: var(--cyan-500); }
.footer ul li:not(:has(a)) { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: 12px; font-family: var(--font-mono); color: rgba(255,255,255,.3); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__sidebar { max-height: 280px; overflow-y: auto; }
  .news-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .cta-newsletter { flex-direction: column; text-align: center; padding: 28px 24px; }
}
@media (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .header__nav { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .news-grid--3, .news-grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .list-item { flex-direction: column; }
  .list-item__img { width: 100%; }
  .cta-newsletter__row { flex-direction: column; }
  .hero__overlay h1 { font-size: 20px; }
}
