/*
Theme Name: Nac Blog
Theme URI: https://wsu.vn
Author: Web Speed Up
Author URI: https://wsu.vn
Description: Nac Blog is a modernized take on an ever-popular WordPress layout — the horizontal masthead with an optional right sidebar that works perfectly for blogs and websites. It has custom color options with beautiful default color schemes, a harmonious fluid grid using a mobile-first approach, and impeccable polish in every detail. Nac Blog will make your WordPress look beautiful everywhere.
Version: 1.0
Text Domain: nacblog

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/


/**
 * Table of Contents
 *
 * 1.0 - Normalize
 * 2.0 - Genericons
 * 3.0 - Typography
 * 4.0 - Elements
 * 5.0 - Forms
 * 6.0 - Navigation
 *   6.1 - Links
 *   6.2 - Menus
 * 7.0 - Accessibility
 * 8.0 - Alignments
 * 9.0 - Clearings
 * 10.0 - Widgets
 * 11.0 - Content
 *    11.1 - Header
 *    11.2 - Posts and pages
 *    11.3 - Post Formats
 *    11.4 - Comments
 *    11.5 - Sidebar
 *    11.6 - Footer
 * 12.0 - Media
 *    12.1 - Captions
 *    12.2 - Galleries
 * 13.0 - Multisite
 * 14.0 - Media Queries
 *    14.1 - >= 710px
 *    14.2 - >= 783px
 *    14.3 - >= 910px
 *    14.4 - >= 985px
 *    14.5 - >= 1200px
 * 15.0 - Print
 */


/**
 * 1.0 - Normalize
 *
 * Normalizing styles have been helped along thanks to the fine work of
 * Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
 */

html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
	display: block;
}

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}

audio:not([controls]) {
	display: none;
	height: 0;
}

[hidden],
template {
	display: none;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: 1px dotted;
}

b,
strong {
	font-weight: 700;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

img {
	border: 0;
}

svg:not(:root) {
	overflow: hidden;
}

figure {
	margin: 0;
}

hr {
	-webkit-box-sizing: content-box;
	-moz-box-sizing: content-box;
	box-sizing: content-box;
}

code,
kbd,
pre,
samp {
	font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
	color: inherit;
	font: inherit;
	margin: 0;
}

select {
	text-transform: none;
}

button {
	overflow: visible;
}

button,
input,
select,
textarea {
	max-width: 100%;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	-webkit-appearance: button;
	cursor: pointer;
}

button[disabled],
html input[disabled] {
	cursor: default;
	opacity: .5;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

input[type="checkbox"],
input[type="radio"] {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin-right: 0.4375em;
	padding: 0;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-outer-spin-button,
input[type="time"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-outer-spin-button,
input[type="datetime-local"]::-webkit-inner-spin-button,
input[type="datetime-local"]::-webkit-outer-spin-button,
input[type="week"]::-webkit-inner-spin-button,
input[type="week"]::-webkit-outer-spin-button,
input[type="month"]::-webkit-inner-spin-button,
input[type="month"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

input[type="search"] {
	-webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

fieldset {
	border: 1px solid #d1d1d1;
	margin: 0 0 1.75em;
	min-width: inherit;
	padding: 0.875em;
}

fieldset > :last-child {
	margin-bottom: 0;
}

legend {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

optgroup {
	font-weight: bold;
}


*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
  /* ── NAC Brand Palette ── */
  --brand-blue:#2035C8;   /* Royal blue — logo stars */
  --brand-navy:#0D1585;   /* Deep navy  — footer bar */
  --brand-crimson:#8B1212;/* Crimson    — hero headline */
  --brand-red:#CC1A1A;    /* Red accent — stripe */

  /* ── Aliases for layout ── */
  --navy:var(--brand-navy);
  --navy-mid:#1A2BA8;
  --navy-light:#2540D4;

  --orange:#E8600A;
  --orange-lt:#F2855A;
  --orange-pale:#FFF0E8;

  --white:#FFFFFF;
  --text:#1A1A1A;
  --muted:#5A5A5A;
  --light:#8A8A8A;
  --border:#E2E2E2;
  --border-lt:#EEEEEE;

  /* ── Category label colours ── */
  --cat-1:var(--brand-blue);   /* Góc Nhìn NAC */
  --cat-2:#1E6B8A;              /* Phân Tích    */
  --cat-3:var(--brand-crimson); /* So Sánh      */
  --cat-4:#2E6B3E;              /* Case Study   */
  --cat-5:#1E6B8A;              /* Cập Nhật     */
  --cat-6:#5A3E8B;              /* Chương Trình */
  --cat-7:#1E6B8A;              /* Infographic  */

  --fd:'Cormorant Garamond',Georgia,serif;
  --fb:'Be Vietnam Pro',sans-serif;
  --t:.22s ease;
}
html{font-size:15px;}
body{background:var(--white);font-family:var(--fb);color:var(--text);-webkit-font-smoothing:antialiased;}
a{text-decoration:none;color:inherit;}
img{display:block;width:100%;height:100%;object-fit:cover;}

/* ── SECTION WRAPPER ── */
.nac-page{max-width:1240px;margin:0 auto;padding:0 24px;}

/* ── SLIM TOP NAV ── */
.nac-top-nav{border-bottom:1px solid var(--border);background:var(--white);position:sticky;top:0;z-index:200;}
.nac-top-nav-inner{max-width:1240px;margin:0 auto;padding:18px 24px 0;display:grid;grid-template-columns:220px 1fr 220px;grid-template-areas:'date brand actions' 'menu menu menu';align-items:end;column-gap:20px;row-gap:14px;}
.nac-top-nav .brand{grid-area:brand;display:flex;justify-content:center;align-items:center;text-align:center;white-space:nowrap;flex-shrink:0;}
.nac-top-nav .brand img {
  max-height: 100px;
  width: auto;
}
.nac-top-nav .brand span{color:var(--navy);}
.nac-top-nav .cat-links{grid-area:menu;display:flex;justify-content:center;gap:0;overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--border-lt);list-style: none;}
.nac-top-nav .cat-links::-webkit-scrollbar{display:none;}
.nac-top-nav .cat-links a{font-family:var(--fb);font-size:11.5px;font-weight:500;color:var(--muted);padding:0 12px;height:44px;display:flex;align-items:center;border-bottom:2px solid transparent;white-space:nowrap;transition:all var(--t);}
.nac-top-nav .cat-links a:hover{color:var(--navy);border-bottom-color:var(--navy);}
.nac-top-nav .cat-links .current-menu-item > a{color:var(--brand-blue);font-weight:600;border-bottom-color:var(--brand-blue);}
.nac-top-nav .nav-cta{grid-area:actions;flex-shrink:0;justify-self:end;margin-left:0;}
.nac-masthead-date{grid-area:date;align-self:center;font-family:var(--fb);color:var(--text);line-height:1.25;}
.nac-masthead-date .day-line{font-size:11.5px;font-weight:500;letter-spacing:.01em;}
.nac-masthead-date .paper-line{font-size:11px;color:var(--muted);margin-top:6px;}
.nac-masthead-title{font-family:'UnifrakturCook', 'Times New Roman', serif;font-size:48px;line-height:.95;font-weight:700;letter-spacing:.01em;color:#111;display:inline-block;}
.nac-masthead-title a{color:inherit;}
.nac-masthead-title a:hover{opacity:.88;}
.nac-top-nav.nyt-style{border-top:2px solid #111;}

/* ── SECTION DIVIDER — FT style ── */
.nac-section-divider{display:flex;align-items:center;gap:14px;margin:36px 0 24px;padding:0;}
.nac-section-divider::before,.nac-section-divider::after{content:'';flex:1;height:1px;background:var(--border);}
.nac-section-divider span{font-family:var(--fb);font-size:10.5px;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);white-space:nowrap;}
.nac-section-more{font-family:var(--fb);font-size:12px;font-weight:500;color:var(--brand-blue);display:flex;align-items:center;gap:4px;transition:color var(--t);}
.nac-section-more:hover{color:var(--navy);}
.nac-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
.nac-section-header h2{font-family:var(--fd);font-size:20px;font-weight:600;color:var(--navy);}

/* ── HERO ZONE — 3 columns ── */
.nac-hero{display:grid;grid-template-columns:280px 1fr 240px;gap:0;padding:28px 0 0;border-bottom:1px solid var(--border);}

/* Hero col 1 — lead story */
.hero-lead{padding:0 24px 24px 0;border-right:1px solid var(--border);}
.hero-lead .cat-label{font-family:var(--fb);font-size:11px;font-weight:700;color:var(--brand-blue);letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px;display:block;}
.hero-lead h1{font-family:var(--fd);font-size:32px;font-weight:700;line-height:1.18;color:var(--navy);margin-bottom:14px;letter-spacing:-.02em;}
.hero-lead h1 a:hover{color:var(--navy-mid);}
.hero-lead .excerpt{font-family:var(--fb);font-size:13.5px;line-height:1.7;color:var(--muted);margin-bottom:16px;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;}
.hero-lead .meta{font-family:var(--fb);font-size:11.5px;color:var(--light);display:flex;gap:12px;align-items:center;margin-bottom:20px;}
.hero-lead .reading-badge{background:#F0F0F0;color:var(--muted);font-weight:600;font-size:10.5px;padding:2px 10px;border-radius:20px;}
.hero-secondary{margin-top:18px;padding-top:14px;border-top:1px solid var(--border-lt);}
.hero-secondary .sub-item{padding:10px 0;border-bottom:1px solid var(--border-lt);}
.hero-secondary .sub-item:last-child{border-bottom:none;}
.hero-secondary .sub-item a{font-family:var(--fd);font-size:14.5px;font-weight:500;color:var(--text);line-height:1.35;transition:color var(--t);}
.hero-secondary .sub-item a:hover{color:var(--navy-mid);}

/* Hero col 2 — main image */
.hero-center{padding:0 20px;border-right:1px solid var(--border);}
.hero-center .main-img{border-radius:4px;overflow:hidden;aspect-ratio:4/3;margin-bottom:12px;}
.hero-center .img-caption{font-family:var(--fb);font-size:13px;line-height:1.55;color:var(--muted);margin-bottom:8px;}
.hero-center .img-caption strong{font-weight:600;color:var(--text);}
.hero-center .img-hl{font-family:var(--fd);font-size:18px;font-weight:600;color:var(--navy);line-height:1.3;margin-top:4px;}
.hero-center .img-hl a:hover{color:var(--navy-mid);}

/* Hero col 3 — editor picks */
.hero-picks{padding:0 0 24px 20px;}
.hero-picks .picks-title{font-family:var(--fb);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--light);border-bottom:1px solid var(--border);padding-bottom:10px;margin-bottom:14px;}
.pick-item{padding:12px 0;border-bottom:1px solid var(--border-lt);}
.pick-item:last-child{border-bottom:none;}
.pick-item .pick-thumb{width:64px;height:52px;border-radius:3px;overflow:hidden;float:right;margin-left:10px;flex-shrink:0;}
.pick-item .pick-thumb-wrap{display:flex;gap:10px;align-items:flex-start;}
.pick-item .pick-thumb-wrap img{width:64px;height:52px;object-fit:cover;border-radius:3px;flex-shrink:0;}
.pick-item .pick-body{}
.pick-item .pick-quote{font-size:26px;color:var(--orange);line-height:1;margin-bottom:3px;font-family:Georgia,serif;}
.pick-item h4{font-family:var(--fd);font-size:14.5px;font-weight:600;line-height:1.3;color:var(--text);margin-bottom:5px;}
.pick-item h4 a:hover{color:var(--navy-mid);}
.pick-item .pick-author{font-family:var(--fb);font-size:11px;color:var(--light);text-transform: capitalize;}

/* ── CATEGORY LABEL COLOURS ── */
.cat-gonhinnac{color:var(--cat-1)!important;}
.cat-phantich{color:var(--cat-2)!important;}
.cat-sosanh{color:var(--cat-3)!important;}
.cat-casestudy{color:var(--cat-4)!important;}
.cat-capnhat{color:var(--cat-5)!important;}
.cat-chuongtrinh{color:var(--cat-6)!important;}
.cat-infographic{color:var(--cat-7)!important;}

/* ── ARTICLE CARD — FT card (image top, label, headline, meta) ── */
.nac-card{display:flex;flex-direction:column;cursor:pointer;}
.nac-card.card-bordered{
  border:1px solid var(--border-lt);
  border-radius:8px;
  padding:0;
  overflow:hidden;
  transition:border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.nac-card.card-bordered:hover{
  border-color:var(--brand-blue);
  box-shadow:0 8px 28px rgba(32,53,200,.12);
  transform:translateY(-2px);
}
.nac-card:hover .card-headline{color:var(--brand-blue);}
.nac-card .card-img-wrap{aspect-ratio:3/2;overflow:hidden;border-radius:3px;margin-bottom:10px;}
.nac-card .card-img-wrap img{transition:transform .5s ease;}
.nac-card:hover .card-img-wrap img{transform:scale(1.04);}
.nac-card .img-placeholder{
  width:100%;height:100%;
  background:#E8EAF0;
  display:flex;align-items:center;justify-content:center;
  position:relative;overflow:hidden;
}
.nac-card .img-placeholder::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.55) 50%,transparent 100%);
  background-size:200% 100%;
  animation:shimmer 1.6s ease-in-out infinite;
}
.nac-card .img-placeholder svg{opacity:.22;position:relative;z-index:1;}
@keyframes shimmer{
  0%  {background-position:200% 0;}
  100%{background-position:-200% 0;}
}
.nac-card .card-cat{font-family:var(--fb);font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px;display:block;transition:color var(--t);}
.nac-card .card-headline{font-family:var(--fd);font-size:17px;font-weight:600;line-height:1.3;color:var(--text);transition:color var(--t);margin-bottom:7px;letter-spacing:-.01em;}
.nac-card .card-excerpt{font-family:var(--fb);font-size:12.5px;line-height:1.6;color:var(--muted);margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.nac-card .card-meta{display:flex;align-items:center;gap:10px;font-family:var(--fb);font-size:11px;color:var(--light);margin-top:auto;padding-top:8px;border-top:1px solid var(--border-lt);}
.nac-card .card-meta .rtime{color:var(--orange);font-weight:600;}
.nac-card .card-tag{display:inline-block;font-family:var(--fb);font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;border:1px solid var(--border);color:var(--muted);padding:2px 8px;}

/* Larger lead card */
.nac-card.card-lead .card-headline{font-size:22px;}
.nac-card.card-lead .card-img-wrap{aspect-ratio:16/9;}
.nac-card.card-lead .card-excerpt{-webkit-line-clamp:3;}

/* ── 4-COL GRID ── */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;}

/* ── SPOTLIGHT SECTION (FT spotlight style) — 3 col: text | big img | small stack ── */
.spotlight-grid{display:grid;grid-template-columns:280px 1fr 220px;gap:0;}
.spotlight-left{padding-right:24px;border-right:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;}
.spotlight-left .cat-label{font-family:var(--fb);font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:12px;display:block;color:var(--navy);}
.spotlight-left h3{font-family:var(--fd);font-size:28px;font-weight:700;line-height:1.2;color:var(--navy);margin-bottom:12px;letter-spacing:-.02em;}
.spotlight-left h3 strong{font-style:italic;}
.spotlight-left .excerpt{font-family:var(--fb);font-size:13px;line-height:1.7;color:var(--muted);margin-bottom:16px;}
.spotlight-left .meta{font-family:var(--fb);font-size:11.5px;color:var(--light);}
.spotlight-center{padding:0 20px;border-right:1px solid var(--border);}
.spotlight-center .s-img{border-radius:3px;overflow:hidden;aspect-ratio:4/3;}
.spotlight-right{padding-left:20px;}
.spotlight-right .s-item{padding:12px 0;border-bottom:1px solid var(--border-lt);}
.spotlight-right .s-item:first-child{padding-top:0;}
.spotlight-right .s-item:last-child{border-bottom:none;}
.spotlight-right .s-cat{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px;display:block;}
.spotlight-right .s-hl{font-family:var(--fd);font-size:15px;font-weight:600;line-height:1.3;color:var(--text);}
.spotlight-right .s-hl a:hover{color:var(--navy-mid);}
.spotlight-right .s-meta{font-size:11px;color:var(--light);margin-top:5px;}

/* ── CTA BANNER ── */
.nac-cta-strip{background:var(--brand-navy);border-radius:8px;padding:32px 44px;margin:40px 0;display:flex;align-items:center;justify-content:space-between;gap:32px;}
.nac-cta-strip h3{font-family:var(--fd);font-size:23px;font-weight:700;color:var(--white);line-height:1.2;}
.nac-cta-strip p{font-family:var(--fb);font-size:13.5px;color:rgba(255,255,255,.55);margin-top:6px;line-height:1.5;}
.nac-cta-strip-btns{display:flex;gap:10px;flex-shrink:0;align-items:center;flex-wrap:wrap;}
/* ════ CTA BUTTONS ════════════════════════════════════════════════════ */

/* Shared base */
.btn-base{
  font-family:var(--fb);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  padding:0 20px;
  height:40px;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  transition:all .2s ease;
  border:none;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  line-height:1;
}

/* ── Orange: Tư Vấn Ngay — pops on dark navy ── */
.btn-gold{
  background:#F5620A;
  color:#fff;
  box-shadow:0 1px 4px rgba(245,98,10,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-gold:hover{
  background:#D4520A;
  box-shadow:0 4px 16px rgba(245,98,10,.45);
  transform:translateY(-1px);
  color:#fff;
}
.btn-gold:active{transform:translateY(0);box-shadow:none;}

/* ── Green: So Sánh Chương Trình ── */
.btn-crimson{
  background:#0BAF4A;
  color:#fff;
  box-shadow:0 1px 4px rgba(11,175,74,.3), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-crimson:hover{
  background:#098C3B;
  box-shadow:0 4px 16px rgba(11,175,74,.4);
  transform:translateY(-1px);
  color:#fff;
}

/* ── WhatsApp green (slightly brighter) ── */
.btn-wa{
  background:#25D366;
  color:#fff;
  box-shadow:0 1px 4px rgba(37,211,102,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-wa:hover{
  background:#1AAD51;
  box-shadow:0 4px 14px rgba(37,211,102,.4);
  transform:translateY(-1px);
  color:#fff;
}

/* ── Ghost outline (secondary on dark strips) ── */
.btn-outline-w{
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.85);
  border:1.5px solid rgba(255,255,255,.35);
  font-family:var(--fb);font-size:13px;font-weight:600;letter-spacing:.02em;
  padding:0 20px;height:40px;border-radius:6px;
  display:inline-flex;align-items:center;gap:9px;
  transition:all .2s ease;white-space:nowrap;line-height:1;
}
.btn-outline-w:hover{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.7);
  color:#fff;
}

/* ── Outline navy (on light bg, e.g. single post) ── */
.btn-navy{
  background:transparent;
  color:var(--brand-navy);
  border:1.5px solid var(--brand-navy);
  font-family:var(--fb);font-size:13px;font-weight:600;letter-spacing:.02em;
  padding:0 20px;height:40px;border-radius:6px;
  display:inline-flex;align-items:center;gap:9px;
  transition:all .2s ease;white-space:nowrap;line-height:1;
}
.btn-navy:hover{background:var(--brand-navy);color:#fff;}

/* ── Nav CTA (smaller, inside 44px header) ── */
.btn-nav{
  font-family:var(--fb);font-size:12px;font-weight:600;
  padding:0 16px;height:30px;border-radius:5px;
  background:#F5620A;color:#fff;
  display:inline-flex;align-items:center;gap:6px;
  transition:all .2s ease;white-space:nowrap;line-height:1;
}
.btn-nav:hover{background:#D4520A;color:#fff;}

/* Arrow icon */
.arr{width:13px;height:13px;flex-shrink:0;transition:transform .2s ease;}
a:hover .arr, button:hover .arr{transform:translateX(3px);}

/* ── INFOGRAPHIC STRIP ── */
.infographic-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border-lt);border:1px solid var(--border-lt);border-radius:6px;overflow:hidden;margin-bottom:4px;}
.infographic-item{background:var(--white);padding:20px;display:flex;flex-direction:column;gap:8px;}
.infographic-item .inf-img{aspect-ratio:4/3;border-radius:3px;overflow:hidden;}
.infographic-item .inf-label{font-family:var(--fb);font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--cat-7);}
.infographic-item h4{font-family:var(--fd);font-size:15px;font-weight:600;color:var(--text);line-height:1.3;}
.infographic-item h4 a:hover{color:var(--navy-mid);}

/* ── PAGINATION ── */
.nav-links{display:flex;align-items:center;justify-content:center;gap:6px;padding:30px 0 0;}
.page-numbers{padding: 5px; width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;font-family:var(--fb);font-size:12.5px;font-weight:500;color:var(--muted);border:1px solid var(--border);border-radius:3px;transition:all var(--t);cursor:pointer;}
.page-numbers:hover,.page-numbers.current{background:var(--navy);border-color:var(--navy);color:var(--white);}
.page-numbers.wide{width:auto;padding:0 12px;}
.prev.page-numbers,
.next.page-numbers {
  width: unset;
}

/* ── VIEW TOGGLE ── */
.preview-bar{background:var(--navy);padding:8px 24px;display:flex;align-items:center;gap:10px;}
.preview-bar span{font-size:11px;color:rgba(255,255,255,.5);font-family:var(--fb);}
.preview-bar button{font-family:var(--fb);font-size:11.5px;font-weight:500;padding:5px 14px;border-radius:3px;border:1px solid rgba(255,255,255,.25);background:transparent;color:rgba(255,255,255,.7);cursor:pointer;transition:all var(--t);}
.preview-bar button.active{background:#F5620A;border-color:#F5620A;color:#fff;font-weight:700;}
.the-author {
  text-transform: capitalize;
}
/* ── SINGLE POST ── */
.progress-bar{position:fixed;top:0;left:0;height:3px;width:0;background:#F5620A;z-index:9999;pointer-events:none;transition:width .1s linear;box-shadow:0 0 6px rgba(245,98,10,.4);}
.single-wrap{max-width:1100px;margin:0 auto;}
.single-header{max-width:760px;margin:0 auto 28px;padding-top:36px;text-align:center;}
.single-cats{display:flex;justify-content:center;gap:8px;margin-bottom:16px;}
.single-cat-pill{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--brand-blue);border:1px solid rgba(32,53,200,.25);padding:4px 12px;border-radius:20px;transition:all var(--t);}
.single-cat-pill:hover{background:#F0F2F5;}
.single-title{font-family:var(--fd);font-size:clamp(26px,3.5vw,42px);font-weight:700;color:var(--navy);line-height:1.18;letter-spacing:-.025em;margin-bottom:20px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
.single-meta{display:flex;align-items:center;justify-content:center;gap:18px;font-family:var(--fb);font-size:12.5px;color:var(--light);padding-bottom:22px;border-bottom:1px solid var(--border);margin-bottom:30px;}
.single-meta .rtime-new {
  display: unset;
}
.rtime-pill{background:#F0F0F0;color:var(--muted);font-weight:700;font-size:11px;padding:2px 12px;border-radius:20px;}
.single-hero-img{border-radius:6px;overflow:hidden;margin-bottom:32px;aspect-ratio:16/6;}
.article-body{max-width:680px;margin:0 auto;font-family:var(--fb);font-size:16px;line-height:1.85;color:var(--text);}
.article-body p{margin-bottom:1.45em;}
.article-body blockquote p{margin-bottom:0}
.article-body h2{font-family:var(--fd);font-size:25px;font-weight:600;color:var(--navy);margin:2em 0 .6em;line-height:1.25;}
.article-body blockquote{border-left:3px solid var(--orange);padding:12px 0 12px 24px;margin:1.8em 0;font-family:var(--fd);font-size:20px;font-style:italic;color:var(--navy-mid);line-height:1.45;position:relative;}.article-body blockquote::before{content:'\201C';font-family:Georgia,serif;font-size:52px;color:var(--orange);line-height:1;position:absolute;left:-4px;top:-10px;font-style:normal;}
.article-body a{color:var(--brand-blue);text-decoration:underline;}
.bottom-cta{background:#F4F6FB;border:1px solid #D8DDEF;border-radius:8px;padding:28px 36px;margin:44px 0 16px;display:flex;align-items:center;justify-content:space-between;gap:24px;}
#single-cta-btns .btn-base{flex:1;min-width:140px;justify-content:center;}
.bottom-cta h4{font-family:var(--fd);font-size:22px;font-weight:700;color:var(--brand-navy);margin-bottom:6px;}
.bottom-cta p{font-family:var(--fb);font-size:13px;color:var(--muted);}


/* Styles injected when mobile mode active */
body.is-mobile .nac-top-nav-inner{padding:12px 14px 0;grid-template-columns:1fr auto;grid-template-areas:'date actions' 'brand brand' 'menu menu';row-gap:10px;align-items:center;}
body.is-mobile .nac-masthead-title{font-size:28px;line-height:1;}
body.is-mobile .nac-masthead-date .day-line{font-size:10.5px;}
body.is-mobile .nac-masthead-date .paper-line{font-size:10px;margin-top:4px;}
body.is-mobile .nac-hero{grid-template-columns:1fr;}
body.is-mobile .hero-lead,
body.is-mobile .hero-center,
body.is-mobile .hero-picks{border:none;padding:12px 0;}
body.is-mobile .hero-lead{padding-top:0;}
body.is-mobile .hero-picks{display:none;}
body.is-mobile .grid-4{grid-template-columns:1fr 1fr;}
body.is-mobile .grid-3{grid-template-columns:1fr 1fr;}
body.is-mobile .nac-card.card-lead{grid-column:span 2;}
body.is-mobile .spotlight-grid{grid-template-columns:1fr;}
body.is-mobile .spotlight-left,
body.is-mobile .spotlight-center,
body.is-mobile .spotlight-right{border:none;padding:10px 0;}
body.is-mobile .spotlight-right .s-item:last-child{display:none;}
body.is-mobile .nac-cta-strip{
  flex-direction:column;
  padding:22px 20px;
  gap:14px;
  border-radius:8px;
}
body.is-mobile .nac-cta-strip h3{font-size:20px;}
body.is-mobile .nac-cta-strip p{font-size:13px;}
body.is-mobile .nac-cta-strip-btns{
  flex-direction:column;
  width:100%;
  gap:10px;
}
body.is-mobile .nac-cta-strip-btns{flex-direction:column;width:100%;}
body.is-mobile .nac-cta-strip-btns a,
body.is-mobile .nac-cta-strip-btns .btn-base,
body.is-mobile .nac-cta-strip-btns .btn-outline-w,
body.is-mobile .nac-cta-strip-btns .btn-gold,
body.is-mobile .nac-cta-strip-btns .btn-crimson,
body.is-mobile .nac-cta-strip-btns .btn-wa{
  width:100%!important;
  justify-content:center!important;
  box-sizing:border-box;
}
body.is-mobile .nac-page{padding:0 16px;}
body.is-mobile .infographic-strip{grid-template-columns:1fr 1fr;}
body.is-mobile .nac-section-header{flex-direction:column;align-items:flex-start;gap:6px;}
body.is-mobile [style*="grid-template-columns:1fr 1fr;gap:40px"]{grid-template-columns:1fr!important;}
body.is-mobile .single-title{font-size:26px;}
body.is-mobile .related-grid{grid-template-columns:1fr !important;}
body.is-mobile .nac-single-wrapper [style*="grid-template-columns:repeat(3,1fr)"]{
  grid-template-columns:1fr !important;
}
body.is-mobile .bottom-cta{flex-direction:column;padding:22px 18px;}
body.is-mobile #single-cta-btns{
  flex-direction:column;width:100%;gap:10px;
}
body.is-mobile #single-cta-btns a{
  width:100%!important;
  justify-content:center!important;
  box-sizing:border-box;
}
/* Mobile hamburger menu icon in nav */
body.is-mobile .nac-top-nav .nav-cta{display:none;}
body.is-mobile .mob-menu-btn{display:flex!important;}

/* ════ MOBILE: CATEGORY PAGE ═══════════════════════════════════════════ */

/* Collapse content+sidebar 2-col grid → single column */
body.is-mobile #view-category [style*="grid-template-columns:1fr 260px"],
body.is-mobile #view-category [style*="grid-template-columns: 1fr 260px"]{
  grid-template-columns:1fr !important;
  gap:0 !important;
}

/* Sidebar: no longer sticky, move below content, add top border */
body.is-mobile #view-category aside{
  position:static !important;
  border-top:1px solid var(--border);
  padding-top:24px;
  margin-top:8px;
}

/* Category header: stack meta below title */
body.is-mobile #view-category [style*="display:flex;align-items:flex-end;justify-content:space-between"]{
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:12px !important;
}

/* Lead article inner 2-col → single col */
body.is-mobile #view-category .nac-card [style*="display:grid;grid-template-columns:1fr 1fr"]{
  grid-template-columns:1fr !important;
}

/* Card grid inside category → 1 col */
body.is-mobile #view-category .grid-2{
  grid-template-columns:1fr !important;
}

/* Compact list rows — keep as is (already single-col rows) */

/* Category header padding tighter on mobile */
body.is-mobile #view-category [style*="padding:32px 0 0"]{
  padding:20px 0 0 !important;
}

/* Filter pills — wrap and reduce padding */
body.is-mobile #view-category [style*="display:flex;gap:8px;padding-bottom:20px"]{
  flex-wrap:wrap;
  gap:6px !important;
  padding-bottom:16px !important;
}

/* Hero lead article image — shorter on mobile */
body.is-mobile #view-category .card-img-wrap[style*="aspect-ratio:21/9"]{
  aspect-ratio:16/9 !important;
}

/* Sidebar newsletter CTA box — full-width button */
body.is-mobile #cat-cta-sidebar .btn-base,
body.is-mobile #cat-cta-sidebar a{
  width:100% !important;
  justify-content:center !important;
}

/* ════ MOBILE: SINGLE ARTICLE CTA FOOTER ════════════════════════════════ */

/* Bottom CTA box — stack vertically, remove space-between tension */
body.is-mobile .bottom-cta{
  flex-direction:column !important;
  align-items:stretch !important;
  padding:22px 18px !important;
  gap:16px !important;
}

/* CTA buttons wrapper — full width, column stack */
body.is-mobile #single-cta-btns{
  display:flex !important;
  flex-direction:column !important;
  width:100% !important;
  flex-shrink:1 !important;
  gap:10px !important;
}

/* Each button — full width, centered, no min-width fighting */
body.is-mobile #single-cta-btns a,
body.is-mobile #single-cta-btns .btn-base{
  width:100% !important;
  flex:none !important;
  min-width:0 !important;
  justify-content:center !important;
  box-sizing:border-box !important;
}

/* Bottom CTA text — readable on mobile */
body.is-mobile .bottom-cta h4{
  font-size:18px !important;
}
body.is-mobile .bottom-cta p{
  font-size:13px !important;
}



/* ════ CATEGORY PAGE ════════════════════════════════════════════════ */

/* ── Category header ── */
.cat-page-header{
  padding:36px 0 28px;
  border-bottom:1px solid var(--border);
  margin-bottom:36px;
}
.cat-page-header .cat-page-label{
  font-family:var(--fb);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--light);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.cat-page-header .cat-page-label::before{
  content:'';
  display:inline-block;
  width:24px; height:2px;
  background:var(--cat-accent);
  border-radius:2px;
}
.cat-page-header h1{
  font-family:var(--fd);
  font-size:40px;
  font-weight:700;
  color:var(--navy);
  letter-spacing:-.025em;
  line-height:1.15;
  margin-bottom:10px;
}
.cat-page-header p{
  font-family:var(--fb);
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
  max-width:620px;
  margin-bottom:16px;
}
.cat-page-meta{
  display:flex;
  align-items:center;
  gap:20px;
  font-family:var(--fb);
  font-size:12px;
  color:var(--light);
}
.cat-page-meta .count-pill{
  background:#F0F2F7;
  color:var(--muted);
  font-weight:600;
  font-size:11px;
  padding:3px 12px;
  border-radius:20px;
}

/* ── Carousel wrapper ── */
.cat-carousel-section{
  position:relative;
  margin-bottom:44px;
}
.cat-carousel-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}
.cat-carousel-label h2{
  font-family:var(--fd);
  font-size:20px;
  font-weight:600;
  color:var(--navy);
}
.cat-carousel-controls{
  display:flex;
  align-items:center;
  gap:8px;
}
.carousel-btn{
  width:36px; height:36px;
  border-radius:50%;
  background:#fff;
  border:1.5px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:all .2s ease;
  color:var(--muted);
  flex-shrink:0;
}
.carousel-btn:hover{
  background:var(--navy);
  border-color:var(--navy);
  color:#fff;
}
.carousel-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}
.carousel-btn svg{ width:14px; height:14px; }
.carousel-dots{
  display:flex;
  align-items:center;
  gap:5px;
}
.carousel-dots .dot{
  width:6px; height:6px;
  border-radius:50%;
  background:var(--border);
  transition:all .25s ease;
  cursor:pointer;
}
.carousel-dots .dot.active{
  background:var(--cat-accent);
  width:18px;
  border-radius:3px;
}

/* ── Carousel track ── */
.cat-carousel-outer{
  overflow:hidden;
  border-radius:8px;
}
.cat-carousel-track{
  display:flex;
  gap:18px;
  transition:transform .45s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}

/* ── Carousel card ── */
.cat-card{
  flex:0 0 calc((100% - 5*18px)/6);
  min-width:0;
  background:#fff;
  border:1px solid var(--border-lt);
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;
  transition:box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  display:flex;
  flex-direction:column;
}
.cat-card:hover{
  box-shadow:0 8px 28px rgba(0,0,0,.1);
  transform:translateY(-3px);
  border-color:var(--border);
}
.cat-card .cc-img{
  aspect-ratio:3/2;
  overflow:hidden;
  flex-shrink:0;
}
.cat-card .cc-img-inner{
  width:100%; height:100%;
  transition:transform .5s ease;
}
.cat-card:hover .cc-img-inner{
  transform:scale(1.06);
}
.cat-card .cc-body{
  padding:14px 14px 16px;
  flex:1;
  display:flex;
  flex-direction:column;
}
.cat-card .cc-label{
  font-family:var(--fb);
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--cat-accent);
  margin-bottom:7px;
  display:block;
}
.cat-card .cc-title{
  font-family:var(--fd);
  font-size:14.5px;
  font-weight:600;
  color:var(--text);
  line-height:1.3;
  margin-bottom:8px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  transition:color .2s ease;
}
.cat-card:hover .cc-title{ color:var(--cat-accent); }
.cat-card .cc-excerpt{
  font-family:var(--fb);
  font-size:11.5px;
  line-height:1.6;
  color:var(--muted);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1;
  margin-bottom:10px;
}
.cat-card .cc-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-family:var(--fb);
  font-size:10.5px;
  color:var(--light);
  padding-top:10px;
  border-top:1px solid var(--border-lt);
}
.cat-card .cc-meta .cc-time{
  color:var(--orange);
  font-weight:600;
}
.cat-card .cc-tag{
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.07em;
  text-transform:uppercase;
  border:1px solid var(--border);
  color:var(--muted);
  padding:2px 7px;
  border-radius:2px;
}

/* ── Auto-scroll ticker (rolling strip) ── */
.cat-ticker-section{
  margin-bottom:44px;
}
.cat-ticker-label{
  font-family:var(--fb);
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--light);
  margin-bottom:14px;
  display:flex;
  align-items:center;
  gap:10px;
}
.cat-ticker-label::after{
  content:'';flex:1;height:1px;background:var(--border-lt);
}
.cat-ticker-outer{
  overflow:hidden;
  border-radius:8px;
  border:1px solid var(--border-lt);
  position:relative;
}
.cat-ticker-outer::before,
.cat-ticker-outer::after{
  content:'';
  position:absolute;
  top:0; bottom:0;
  width:80px;
  z-index:2;
  pointer-events:none;
}
.cat-ticker-outer::before{
  left:0;
  background:linear-gradient(to right,#fff,transparent);
}
.cat-ticker-outer::after{
  right:0;
  background:linear-gradient(to left,#fff,transparent);
}
.cat-ticker-track{
  display:flex;
  gap:0;
  animation:tickerScroll 28s linear infinite;
}
.cat-ticker-track:hover{
  animation-play-state:paused;
}
@keyframes tickerScroll{
  0%  { transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
.cat-ticker-item{
  flex:0 0 280px;
  border-right:1px solid var(--border-lt);
  padding:18px 20px;
  display:flex;
  flex-direction:column;
  gap:6px;
  background:#fff;
  cursor:pointer;
  transition:background .2s ease;
}
.cat-ticker-item:hover{ background:#F7F9FD; }
.cat-ticker-item .ti-cat{
  font-family:var(--fb);
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--cat-accent);
}
.cat-ticker-item .ti-title{
  font-family:var(--fd);
  font-size:14px;
  font-weight:600;
  color:var(--text);
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.cat-ticker-item .ti-meta{
  font-family:var(--fb);
  font-size:10.5px;
  color:var(--light);
  display:flex;
  gap:10px;
}

/* ── All articles grid (below carousel) ── */
.cat-all-section{ margin-top:8px; }
.cat-all-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  margin-bottom:32px;
}
.cat-all-card{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding-bottom:20px;
  border-bottom:1px solid var(--border-lt);
}
.cat-all-card .cac-img{
  width:88px; height:68px;
  border-radius:5px;
  overflow:hidden;
  flex-shrink:0;
}
.cat-all-card .cac-img-inner{
  width:100%; height:100%;
  transition:transform .4s ease;
}
.cat-all-card:hover .cac-img-inner{ transform:scale(1.06); }
.cat-all-card .cac-body{}
.cat-all-card .cac-cat{
  font-family:var(--fb);
  font-size:9.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--cat-accent);
  margin-bottom:5px;
  display:block;
}
.cat-all-card .cac-title{
  font-family:var(--fd);
  font-size:15px;
  font-weight:600;
  line-height:1.3;
  color:var(--text);
  margin-bottom:5px;
  transition:color .2s ease;
}
.cat-all-card:hover .cac-title{ color:var(--cat-accent); }
.cat-all-card .cac-meta{
  font-family:var(--fb);
  font-size:10.5px;
  color:var(--light);
  display:flex;
  gap:8px;
}
.cac-meta .cac-time{ color:var(--orange); font-weight:600; }

/* Mobile category */
body.is-mobile .cat-card{
  flex:0 0 260px;
}
body.is-mobile .cat-all-grid{
  grid-template-columns:1fr;
}

@media(max-width:900px){
  .nac-hero{grid-template-columns:1fr;}.hero-lead,.hero-center,.hero-picks{border:none;padding:16px 0;}
  .spotlight-grid{grid-template-columns:1fr;}
  .spotlight-left,.spotlight-center,.spotlight-right{border:none;padding:12px 0;}
  .grid-4{grid-template-columns:1fr 1fr;}.grid-3{grid-template-columns:1fr 1fr;}
  .nac-cta-strip{flex-direction:column;padding:24px;}.nac-cta-strip-btns{flex-wrap:wrap;}
  .infographic-strip{grid-template-columns:1fr 1fr;}
}



/* ════ AUTHOR / TRUST BLOCK ═══════════════════════════════════════ */
.author-box{
  display:flex;align-items:flex-start;gap:16px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:22px 0;margin:34px 0 18px;
}
.author-avatar{
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,#2035C8,#0D1585);
  color:#fff;display:flex;align-items:center;justify-content:center;
  font-family:var(--fd);font-size:28px;font-weight:700;flex-shrink:0;
}
.author-box h4{
  font-family:var(--fd);font-size:24px;font-weight:700;color:var(--brand-navy);
  line-height:1.1;margin:0 0 6px;
}
.author-role{
  font-family:var(--fb);font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--brand-blue);margin-bottom:6px;
}
.author-meta-row{
  display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px;
}
.author-chip{
  display:inline-flex;align-items:center;
  font-family:var(--fb);font-size:11px;font-weight:600;color:var(--muted);
  background:#F4F6FB;border:1px solid #D8DDEF;padding:4px 10px;border-radius:20px;
}
.author-bio{
  font-family:var(--fb);font-size:13.5px;line-height:1.65;color:var(--muted);margin-bottom:12px;
}
.author-links{display:flex;flex-wrap:wrap;gap:10px;}
.author-links a{font-size:12px;font-weight:600;color:var(--brand-blue);}

/* ════ NEWSLETTER / BRIEF MODULE ═══════════════════════════════════ */
.newsletter-block{
  background:#F8FAFF;border:1px solid #DCE4FA;border-radius:10px;
  padding:22px 22px;margin:18px 0 30px;
}
.newsletter-eyebrow{
  font-family:var(--fb);font-size:10.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--brand-blue);display:block;margin-bottom:8px;
}
.newsletter-block h4{
  font-family:var(--fd);font-size:24px;font-weight:700;color:var(--brand-navy);
  line-height:1.2;margin:0 0 8px;
}
.newsletter-block p{
  font-family:var(--fb);font-size:13.5px;line-height:1.65;color:var(--muted);margin:0 0 16px;
}
.newsletter-form .wpcf7-form {
  display:grid;grid-template-columns:1.1fr .9fr auto;gap:10px;align-items:center;position: relative;
}
.newsletter-form .wpcf7-form p {
  margin-bottom: 0;
}
.newsletter-form .wpcf7-form .wpcf7-spinner {
  position: absolute;
  top: 100%;

}
.wpcf7 {
  width: 100%;
}
.wpcf7-not-valid-tip {
  position: absolute;
}
.newsletter-input,.newsletter-select, .wpcf7-text {
  height:42px;border-radius:7px;border:1px solid var(--border);
  background:#fff;padding:0 14px;font-family:var(--fb);font-size:13px;color:var(--text);
  width: 100%;
}
.newsletter-note{
  font-family:var(--fb);font-size:11.5px;color:var(--light);margin-top:10px;
}

/* ════ FILTER LAYER ENHANCEMENT ═════════════════════════════════════ */
.filter-cluster{display:flex;flex-direction:column;gap:10px;}
.filter-row{display:flex;gap:8px;flex-wrap:wrap;}
.filter-label{
  font-family:var(--fb);font-size:10px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--light);width:100%;
}
.cat-filter.subtle{
  background:#fff;color:var(--muted);border-color:var(--border-lt);
}
.nav-links {
  text-align: center;
}
.page-bottom {
  margin-bottom: 50px;
}
/* ════ MOBILE CURATION / SIMPLIFICATION ═════════════════════════════ */
body.is-mobile .hero-secondary,
body.is-mobile .hero-center .img-caption,
body.is-mobile .hero-center .img-hl,
body.is-mobile .discovery-carousel-section,
body.is-mobile .spotlight-grid,
body.is-mobile .infographic-strip,
body.is-mobile #cta-strip-2{
  display:none !important;
}
body.is-mobile .nac-section-divider{margin:22px 0 14px;}
body.is-mobile .nac-section-header h2{font-size:18px;}
body.is-mobile .grid-4,
body.is-mobile .grid-3{
  grid-template-columns:1fr !important;
  gap:16px !important;
}
body.is-mobile .grid-4 .nac-card:nth-child(n+3),
body.is-mobile .grid-3 .nac-card:nth-child(n+3){
  display:none !important;
}
body.is-mobile .nac-card.card-lead{grid-column:auto !important;}
body.is-mobile #cta-strip-1{
  margin:26px 0 18px !important;
  padding:20px 18px !important;
}
body.is-mobile #cta-strip-1 .nac-cta-strip-btns a:not(:first-child){
  display:none !important;
}
body.is-mobile .newsletter-form{
  grid-template-columns:1fr;
}
body.is-mobile .author-box{
  flex-direction:column;
  gap:12px;
}
body.is-mobile .author-box h4{font-size:21px;}
body.is-mobile .newsletter-block h4{font-size:22px;}

/* ════ FEATURE 3: INLINE ARTICLE CTA ══════════════════════════════════ */
.inline-article-cta{
  display:flex;
  align-items:center;
  gap:16px;
  background:#EEF2FB;
  border:1.5px solid rgba(32,53,200,.15);
  border-left:4px solid var(--brand-blue);
  border-radius:8px;
  padding:16px 15px;
  margin:2em 0;
}
.iac-icon{font-size:28px;flex-shrink:0;line-height:1;}
.iac-text{flex:1;min-width:0;}
.iac-text strong{
  font-family:var(--fb);font-size:14px;font-weight:700;
  color:var(--brand-navy);display:block;margin-bottom:3px;
}
.iac-text span{ line-height: 1.2;
  font-family:var(--fb);font-size:12.5px;color:var(--muted);line-height:1.4;
}
.iac-btn{flex-shrink:0;}
body.is-mobile .inline-article-cta{flex-direction:column;align-items:flex-start;gap:12px;}
body.is-mobile .iac-btn{width:100%;justify-content:center;}

/* ════ FEATURE 4: TABLE OF CONTENTS ═══════════════════════════════════ */
.toc-panel{
  position:fixed;
  right:24px;
  top:50%;
  transform:translateY(-50%);
  width:200px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:16px;
  box-shadow:0 4px 24px rgba(0,0,0,.08);
  z-index:100;
  pointer-events:none;
  transition:opacity .3s ease, transform .3s ease;
  max-height:70vh;
  overflow-y:auto;
  opacity:1;
  pointer-events:all;
}
.toc-panel-hidden .toc-nav {
	display: none;
}
.toc-panel-hidden .toc-header {
	border: none;
    padding-bottom: 0;
}
.toc-panel.toc-panel-hidden {
	right: 10px;
	width: 100px;
	padding: 10px
}
#view-single.is-visible .toc-panel{opacity:1;pointer-events:all;}
.toc-header{
  font-family:var(--fb);font-size:10px;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  color:var(--light);margin-bottom:12px;
  display:flex;align-items:center;gap:6px;
  border-bottom:1px solid var(--border-lt);
  padding-bottom:10px;
}
.toc-nav{display:flex;flex-direction:column;gap:0;}
.toc-nav a{
  font-family:var(--fb);font-size:12px;color:var(--muted);
  text-decoration:none;padding:7px 0 7px 12px;
  border-left:2px solid transparent;
  transition:all .2s ease;line-height:1.35;
  display:block;
}
.toc-nav a:hover{color:var(--brand-navy);border-left-color:var(--border);}
.toc-nav a.toc-active{
  color:var(--brand-blue);font-weight:600;
  border-left-color:var(--brand-blue);
}
.toc-progress-wrap{
  display:flex;align-items:center;gap:8px;
  margin-top:12px;padding-top:10px;
  border-top:1px solid var(--border-lt);
}
.toc-progress-track{
  flex:1;height:3px;background:var(--border-lt);
  border-radius:3px;overflow:hidden;
}
.toc-progress-fill{
  height:100%;width:0%;
  background:var(--brand-blue);
  border-radius:3px;
  transition:width .2s ease;
}
#toc-pct{font-family:var(--fb);font-size:10px;color:var(--light);flex-shrink:0;}
/* Hide on mobile */
body.is-mobile .toc-panel{display:none;}

/* ════ FEATURE 5: EDITORIAL INTRO SENTENCES ════════════════════════════ */
.section-intro{
  display:block;
  font-family:var(--fd);
  font-style:italic;
  font-size:15px;
  color:var(--muted);
  line-height:1.55;
  margin:-8px 0 20px;
  letter-spacing:.005em;
}
p.section-intro{margin-top:-10px;margin-bottom:22px;}

/* ════ FEATURE 7: READING TIME REFRAMED ════════════════════════════════ */
.rtime-new{
  display:inline-flex;align-items:center;gap:5px;
  font-family:var(--fb);font-size:11px;font-weight:600;
  color:var(--muted);white-space:nowrap;
}
.rt-dots{
  display:inline-flex;align-items:center;gap:2.5px;margin-left:3px;
}
.rt-dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--border);flex-shrink:0;
}
.rt-dot-filled{background:var(--orange);}
/* Quick read gets green dots */
.rtime-new:has(.rt-dot-filled:only-of-type) .rt-dot-filled{background:#0BAF4A;}

/* ════ FEATURE 8: BOOKMARK ICON ════════════════════════════════════════ */
.bookmark-btn{
  background:none;border:none;cursor:pointer;
  padding:3px;margin-right:4px;
  color:var(--light);flex-shrink:0;
  transition:all .2s ease;
  display:inline-flex;align-items:center;
  border-radius:4px;
}
.bookmark-btn:hover{color:var(--brand-blue);}
.bookmark-btn.saved{color:var(--brand-blue);}
.bookmark-btn.saved svg{fill:var(--brand-blue);}
/* Saved count badge */
.saved-toast{
  position:fixed;bottom:24px;left:50%;
  transform:translateX(-50%) translateY(20px);
  background:var(--brand-navy);color:#fff;
  font-family:var(--fb);font-size:13px;font-weight:500;
  padding:10px 20px;border-radius:30px;
  box-shadow:0 4px 16px rgba(0,0,0,.2);
  opacity:0;transition:all .3s ease;
  pointer-events:none;z-index:9999;white-space:nowrap;
}
.saved-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}


/* ════ FEATURE 6: MOOD / INTENT TAGS ══════════════════════════════════ */
.mood-tags{
  display:flex;flex-wrap:wrap;gap:5px;
  margin:6px 0 8px;
}
.mood-tag{
  display:inline-flex;align-items:center;gap:3px;
  font-family:var(--fb);font-size:10px;font-weight:700;
  letter-spacing:.04em;padding:3px 8px;border-radius:20px;
  white-space:nowrap;
}
.mood-hot, .mood--dang-hot {background:#FFF0E8;color:#D14800;}
.mood-urgent, .mood--can-biet-han-gan  {background:#FFF0F0;color:#B81414;}
.mood-data, .mood--du-lieu-moi {background:#EEF2FB;color:#2035C8;}
.mood-exclusive, .mood--doc-quyen, .mood--phan-tich-doc-quyen {background:#F0F5EE;color:#1D6B3A;}
.mood-value   {background:#FFF8E6;color:#9A5A00;}

/* ════ FEATURE 8: CATEGORY COMPLETION TRACKER ══════════════════════════ */
.cat-tracker{
  background:#F4F6FB;
  border:1px solid #D8DDEF;
  border-radius:8px;
  padding:14px 16px;
  margin-bottom:20px;
}
.ct-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:8px;
}
.ct-label{
  font-family:var(--fb);font-size:10.5px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:var(--muted);
}
.ct-count{
  font-family:var(--fb);font-size:12px;font-weight:700;
  color:var(--brand-blue);
}
.ct-bar-wrap{
  height:5px;background:var(--border-lt);
  border-radius:5px;overflow:hidden;margin-bottom:7px;
}
.ct-bar{
  height:100%;width:0%;background:var(--brand-blue);
  border-radius:5px;transition:width .6s cubic-bezier(.4,0,.2,1);
}
.ct-sub{
  font-family:var(--fb);font-size:11px;color:var(--light);margin:0;
}

/* ════ FEATURE 9: HORIZONTAL DISCOVERY CAROUSEL ════════════════════════ */
.discovery-carousel-section{
  margin:8px 0 44px;
}
.discovery-carousel-header{
  display:flex;align-items:flex-end;justify-content:space-between;
  margin-bottom:18px;
}
.dc-eyebrow{
  font-family:var(--fb);font-size:10.5px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--light);display:block;margin-bottom:4px;
}
.discovery-carousel-label .dc-title{
  font-family:var(--fd);font-size:20px;font-weight:600;
  color:var(--brand-navy);margin:0;
}
.dc-controls{
  display:flex;align-items:center;gap:8px;padding-bottom:4px;
}
.dc-btn{
  width:32px;height:32px;border-radius:50%;
  border:1.5px solid var(--border);background:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .2s ease;color:var(--muted);
  flex-shrink:0;
}
.dc-btn:hover{background:var(--brand-navy);border-color:var(--brand-navy);color:#fff;}
.dc-btn:disabled{opacity:.3;cursor:default;}
.dc-dots{
  display:flex;gap:4px;align-items:center;
}
.dc-dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--border);cursor:pointer;
  transition:all .25s ease;
}
.dc-dot.active{
  background:var(--brand-blue);
  width:16px;border-radius:3px;
}
.dc-outer{
  overflow:hidden;
  cursor:grab;
  user-select:none;
}
.dc-outer:active{cursor:grabbing;}
.dc-track{
  display:flex;
  gap:16px;
  transition:transform .45s cubic-bezier(.4,0,.2,1);
  will-change:transform;
}
.dc-card{
  flex:0 0 220px;
  background:#fff;
  border:1px solid var(--border-lt);
  border-radius:10px;
  overflow:hidden;
  transition:border-color .2s, box-shadow .2s, transform .2s;
  cursor:pointer;
}
.dc-card:hover{
  border-color:var(--brand-blue);
  box-shadow:0 6px 20px rgba(32,53,200,.12);
  transform:translateY(-2px);
}
.dc-img{
  aspect-ratio:16/9;overflow:hidden;
}
.dc-body{
  padding:12px 12px 12px;
}
.dc-cat{
  font-family:var(--fb);font-size:10px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;
  display:block;margin-bottom:5px;
}
.dc-title-text{
  font-family:var(--fd);font-size:14.5px;font-weight:600;
  color:var(--text);line-height:1.3;margin:0 0 8px;
  display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
}
.dc-card:hover .dc-title-text{color:var(--brand-blue);}
.dc-meta{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.dc-time{
  font-family:var(--fb);font-size:10.5px;
  color:var(--orange);font-weight:600;
}
/* Mobile carousel */
body.is-mobile .dc-outer{overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;}
body.is-mobile .dc-track{transition:none;}
body.is-mobile .dc-card{flex:0 0 180px;scroll-snap-align:start;}
body.is-mobile .dc-controls{display:none;}

/* ════ FEATURE 10: OUTCOME STAKES ══════════════════════════════════════ */
.outcome-stakes{
  display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  margin:4px 0 8px;
  font-family:var(--fb);font-size:11px;
  color:var(--muted);font-style:italic;
  line-height:1.4;
}
.outcome-stakes span{white-space:nowrap;}
.stakes-divider{color:var(--border);font-style:normal;flex-shrink:0;}


/* ════ BOOKLET VIEWER ══════════════════════════════════════════════════ */
.booklet-section{
  margin-bottom:48px;
}
.booklet-label{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:20px;
}
.bl-eyebrow{
  font-family:var(--fb);font-size:10.5px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;color:var(--light);
}
.bl-nav{display:flex;align-items:center;gap:10px;}
.bl-btn{
  width:32px;height:32px;border-radius:50%;
  border:1.5px solid var(--border);background:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:all .2s;color:var(--muted);
}
.bl-btn:hover{background:var(--brand-navy);border-color:var(--brand-navy);color:#fff;}
.bl-btn:disabled{opacity:.3;cursor:default;}
.bl-counter{
  font-family:var(--fb);font-size:12px;font-weight:600;
  color:var(--muted);min-width:40px;text-align:center;
}

/* Book physical wrapper */
.book-wrap{
  position:relative;
  height:380px;
  perspective:2200px;
  perspective-origin:50% 45%;
}

/* Shadow pages stacked behind for depth */
.book-shadow-page{
  position:absolute;inset:0;
  background:#fff;
  border:1px solid var(--border);
  border-radius:3px 12px 12px 3px;
  box-shadow:2px 2px 6px rgba(0,0,0,.08);
}
.book-shadow-1{transform:translateX(4px) translateY(3px) rotateY(-1deg);z-index:1;background:#f8f8f8;}
.book-shadow-2{transform:translateX(8px) translateY(6px) rotateY(-2deg);z-index:0;background:#f0f0f0;}

/* Book spine */
.book-spine{
  position:absolute;
  left:50%;transform:translateX(-50%);
  top:0;bottom:0;
  width:12px;
  background:linear-gradient(90deg,#d0d4e0,#e8eaf0,#d0d4e0);
  z-index:20;
  box-shadow:inset 2px 0 4px rgba(0,0,0,.08),inset -2px 0 4px rgba(0,0,0,.08);
}

/* Book stage — contains pages */
.book-stage{
  position:absolute;inset:0;
  z-index:10;
}

/* Spread — two-page open book layout */
.book-spread{
  position:absolute;inset:0;
  display:none;
  transform-style:preserve-3d;
  transform-origin:center center;
}
.book-spread.active{display:grid;grid-template-columns:1fr 1fr;animation:bookReveal .55s cubic-bezier(.4,0,.2,1) forwards;}
.book-spread.flip-out{display:grid;grid-template-columns:1fr 1fr;animation:bookFlipOut .4s cubic-bezier(.4,0,.2,1) forwards;}
.book-spread.flip-in{display:grid;grid-template-columns:1fr 1fr;animation:bookFlipIn .45s cubic-bezier(.4,0,.2,1) forwards;}

@keyframes bookReveal{
  from{opacity:0;transform:rotateY(-8deg);}
  to  {opacity:1;transform:rotateY(0deg);}
}
@keyframes bookFlipOut{
  from{opacity:1;transform:rotateY(0deg) translateX(0);}
  to  {opacity:0;transform:rotateY(-30deg) translateX(-60px);}
}
@keyframes bookFlipIn{
  from{opacity:0;transform:rotateY(25deg) translateX(40px);}
  to  {opacity:1;transform:rotateY(0deg) translateX(0);}
}

/* Left page */
.book-left{
  background:#fff;
  border:1px solid var(--border-lt);
  border-right:none;
  border-radius:3px 0 0 3px;
  padding:32px 36px 32px 40px;
  display:flex;flex-direction:column;gap:12px;
  box-shadow:inset -2px 0 8px rgba(0,0,0,.04);
  position:relative;overflow:hidden;
}
.book-left::before{
  content:'';position:absolute;right:0;top:0;bottom:0;
  width:1px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.1),transparent);
}

/* Right page */
.book-right{
  background:#FAFBFE;
  border:1px solid var(--border-lt);
  border-left:none;
  border-radius:0 12px 12px 0;
  padding:28px 36px 28px 32px;
  display:flex;flex-direction:column;gap:16px;
  box-shadow:4px 4px 16px rgba(0,0,0,.06);
}

/* Page number */
.bl-pg-num{
  font-family:var(--fd);font-size:48px;font-weight:700;
  color:var(--border-lt);line-height:1;
  position:absolute;bottom:20px;right:24px;
}

.book-cat{
  font-family:var(--fb);font-size:10px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
}
.book-headline{
  font-family:var(--fd);font-size:24px;font-weight:700;
  color:var(--brand-navy);line-height:1.22;
  letter-spacing:-.02em;margin:0;
}
.book-excerpt{
  font-family:var(--fb);font-size:13.5px;line-height:1.7;
  color:var(--muted);margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
.book-tags{display:flex;gap:6px;flex-wrap:wrap;}
.book-stakes{
  font-family:var(--fb);font-size:11.5px;font-style:italic;
  color:var(--muted);
}
.book-read-btn{margin-top:auto;align-self:flex-start;}

.book-img{
  height:180px;border-radius:6px;overflow:hidden;flex-shrink:0;
}
.book-pullquote{
  font-family:var(--fd);font-size:17px;font-style:italic;
  color:var(--brand-navy);line-height:1.5;
  border-left:3px solid var(--orange);
  padding:10px 0 10px 18px;
  margin:0;flex:1;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
}
.book-pullquote::before{
  content:'"';font-size:36px;color:var(--orange);
  line-height:1;display:block;margin-bottom:-8px;font-style:normal;
  font-family:Georgia,serif;
}
.book-meta-row{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:12px;border-top:1px solid var(--border-lt);
}

/* ════ FAN DECK ════════════════════════════════════════════════════════ */
.fan-section{margin-bottom:0;}

.fan-deck-wrap{
  position:relative;
  padding:20px 0 16px;
  min-height:280px;
}

.fan-deck{
  position:relative;
  display:flex;
  justify-content:flex-end;  /* stack starts from RIGHT */
  align-items:center;
  height:240px;
  transition:all .5s ease;
}

/* Each fan card — absolute positioned, stacked */
.fan-card-item{
  position:absolute;
  width:190px;
  height:230px;
  background:#fff;
  border:1px solid var(--border-lt);
  border-radius:10px;
  overflow:hidden;
  cursor:pointer;
  transition:all .45s cubic-bezier(0.34, 1.3, 0.64, 1);
  box-shadow:0 4px 16px rgba(0,0,0,.1);
  display:flex;flex-direction:column;
  user-select:none;
}
.fan-card-item:hover{
  box-shadow:0 8px 28px rgba(32,53,200,.2);
  border-color:var(--brand-blue);
}
.fci-img{height:110px;overflow:hidden;flex-shrink:0;}
.fci-body{padding:10px 12px 12px;flex:1;display:flex;flex-direction:column;gap:5px;}
.fci-cat{font-family:var(--fb);font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;}
.fci-title{font-family:var(--fd);font-size:13px;font-weight:600;color:var(--text);line-height:1.3;margin:0;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.fan-card-item:hover .fci-title{color:var(--brand-blue);}
.fci-meta{margin-top:auto;}

/* FANNED state — right side, overlapping, rotating */
.fan-deck.fanned .fan-card-item:nth-child(1){right:0;   transform:rotate(0deg)   translateY(0);   z-index:8;}
.fan-deck.fanned .fan-card-item:nth-child(2){right:16px; transform:rotate(-4deg)  translateY(4px);  z-index:7;}
.fan-deck.fanned .fan-card-item:nth-child(3){right:32px; transform:rotate(-8deg)  translateY(10px); z-index:6;}
.fan-deck.fanned .fan-card-item:nth-child(4){right:48px; transform:rotate(-12deg) translateY(18px); z-index:5;}
.fan-deck.fanned .fan-card-item:nth-child(5){right:64px; transform:rotate(-16deg) translateY(28px); z-index:4;}
.fan-deck.fanned .fan-card-item:nth-child(6){right:80px; transform:rotate(-20deg) translateY(38px); z-index:3;}
.fan-deck.fanned .fan-card-item:nth-child(7){right:96px; transform:rotate(-24deg) translateY(48px); z-index:2;}
.fan-deck.fanned .fan-card-item:nth-child(8){right:112px;transform:rotate(-28deg) translateY(58px); z-index:1;}

/* SPREAD state — horizontal row, right to left */
.fan-deck.spread .fan-card-item:nth-child(1){right:auto;left:calc(7 * 200px); transform:rotate(0) translateY(0); z-index:8;}
.fan-deck.spread .fan-card-item:nth-child(2){right:auto;left:calc(6 * 200px); transform:rotate(0) translateY(0); z-index:7;}
.fan-deck.spread .fan-card-item:nth-child(3){right:auto;left:calc(5 * 200px); transform:rotate(0) translateY(0); z-index:6;}
.fan-deck.spread .fan-card-item:nth-child(4){right:auto;left:calc(4 * 200px); transform:rotate(0) translateY(0); z-index:5;}
.fan-deck.spread .fan-card-item:nth-child(5){right:auto;left:calc(3 * 200px); transform:rotate(0) translateY(0); z-index:4;}
.fan-deck.spread .fan-card-item:nth-child(6){right:auto;left:calc(2 * 200px); transform:rotate(0) translateY(0); z-index:3;}
.fan-deck.spread .fan-card-item:nth-child(7){right:auto;left:calc(1 * 200px); transform:rotate(0) translateY(0); z-index:2;}
.fan-deck.spread .fan-card-item:nth-child(8){right:auto;left:0;              transform:rotate(0) translateY(0); z-index:1;}

.fan-deck.spread{width:calc(8 * 200px + 10px);overflow-x:auto;}

.fan-hint{
  font-family:var(--fb);font-size:12px;color:var(--light);
  text-align:right;margin-top:8px;font-style:italic;
  transition:opacity .3s;
}
.fan-hint.hidden{opacity:0;}

/* ════ MOBILE: booklet + fan ════════════════════════════════════════════ */
body.is-mobile .book-wrap{height:auto;perspective:none;}
body.is-mobile .book-spread.active,
body.is-mobile .book-spread.flip-out,
body.is-mobile .book-spread.flip-in{
  grid-template-columns:1fr;
  height:auto;
  position:relative;
  animation:bookRevealMob .4s ease forwards;
}
@keyframes bookRevealMob{
  from{opacity:0;transform:translateY(12px);}
  to  {opacity:1;transform:translateY(0);}
}
body.is-mobile .book-shadow-page,
body.is-mobile .book-spine{display:none;}
body.is-mobile .book-right{border-radius:0 0 10px 10px;border-top:none;}
body.is-mobile .book-left{border-radius:10px 10px 0 0;border-right:1px solid var(--border-lt);}
body.is-mobile .book-img{height:160px;}
body.is-mobile .bl-pg-num{display:none;}

/* Mobile fan — horizontal scroll row */
body.is-mobile .fan-deck-wrap{min-height:200px;overflow:hidden;}
body.is-mobile .fan-deck{
  display:flex;flex-direction:row;
  justify-content:flex-start;
  position:static;height:auto;
  gap:12px;overflow-x:auto;
  padding:8px 0 16px;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
}
body.is-mobile .fan-card-item{
  position:static;flex:0 0 160px;
  transform:none !important;
  height:200px;
  scroll-snap-align:start;
}
body.is-mobile .fan-hint{display:none;}


/* ════ BOOKLET CATEGORY PLP ════════════════════════════════════════════ */

/* Layout */
.booklet-layout{
  display:grid;
  grid-template-columns:1fr 240px;
  gap:36px;
  align-items:start;
  margin-bottom:8px;
}

/* Wrap */
.booklet-wrap{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* 3D Scene */
.booklet-scene{
  perspective:1400px;
  position:relative;
  height:580px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Fan cards (stack behind active) */
.booklet-fan{
  position:absolute;
  width:560px;
  height:460px;
  transform-style:preserve-3d;
}
.fan-card{
  position:absolute;
  inset:0;
  background:#fff;
  border:1px solid var(--border-lt);
  border-radius:16px;
  box-shadow:0 4px 20px rgba(0,0,0,.06);
  transition:transform .4s cubic-bezier(.4,0,.2,1);
}
/* Right-to-left fan: next articles peek behind active card */
.fan-card{
  overflow:hidden;
  /* Blur + dim — preview, not distraction */
  filter:blur(1.5px) brightness(.88);
  pointer-events:none;
}
.fan-card.fan-1{
  transform:translateX(22px) translateY(6px) rotate(5deg);
  z-index:3;
  filter:blur(1.5px) brightness(.88);
}
.fan-card.fan-2{
  transform:translateX(46px) translateY(12px) rotate(10deg);
  z-index:2;
  filter:blur(3px) brightness(.78);
}
.fan-card.fan-3{
  transform:translateX(68px) translateY(18px) rotate(14deg);
  z-index:1;
  filter:blur(4px) brightness(.68);
}
/* Preview content inside fan cards */
.fan-preview{
  padding:24px 24px 20px;
  height:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
}
.fan-preview-img{
  width:100%;aspect-ratio:16/7;
  border-radius:8px;overflow:hidden;
  margin-bottom:14px;flex-shrink:0;
}
.fan-preview-cat{
  font-family:var(--fb);font-size:9.5px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  margin-bottom:6px;display:block;
}
.fan-preview-title{
  font-family:var(--fd);font-size:18px;font-weight:700;
  color:var(--brand-navy);line-height:1.25;
  letter-spacing:-.02em;
  display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
}
.fan-preview-excerpt{
  font-family:var(--fb);font-size:11.5px;color:var(--muted);
  line-height:1.55;margin-top:8px;
  display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
}

/* Active card */
.booklet-active{
  position:relative;
  width:560px;
  min-height:460px;
  background:#fff;
  border:1px solid var(--border-lt);
  border-radius:16px;
  box-shadow:0 8px 40px rgba(13,21,133,.14);
  z-index:10;
  transform-origin:left center;
  transform-style:preserve-3d;
  transition:transform .55s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
  overflow:hidden;
}
.booklet-active:hover{
  box-shadow:0 12px 48px rgba(13,21,133,.2);
}

/* Flip-out animation — card sweeps left like a book page */
.booklet-active.flip-out{
  animation:bookletFlipOut .5s cubic-bezier(.4,0,.8,1) forwards;
}
@keyframes bookletFlipOut{
  0%  { transform:rotateY(0deg) translateX(0);     opacity:1; }
  40% { transform:rotateY(-35deg) translateX(-30px); opacity:.9; }
  100%{ transform:rotateY(-90deg) translateX(-120px);opacity:0; }
}

/* Flip-in animation — next card arrives from slight right lean */
.booklet-active.flip-in{
  animation:bookletFlipIn .5s cubic-bezier(.2,0,.6,1) forwards;
}
@keyframes bookletFlipIn{
  0%  { transform:rotateY(15deg) translateX(40px); opacity:0; }
  60% { transform:rotateY(-4deg) translateX(-8px);  opacity:1; }
  100%{ transform:rotateY(0deg)  translateX(0);    opacity:1; }
}

/* Flip back (prev) */
.booklet-active.flip-out-rev{
  animation:bookletFlipOutRev .5s cubic-bezier(.4,0,.8,1) forwards;
}
@keyframes bookletFlipOutRev{
  0%  { transform:rotateY(0deg) translateX(0); opacity:1; }
  100%{ transform:rotateY(25deg) translateX(60px); opacity:0; }
}
.booklet-active.flip-in-rev{
  animation:bookletFlipInRev .5s cubic-bezier(.2,0,.6,1) forwards;
}
@keyframes bookletFlipInRev{
  0%  { transform:rotateY(-20deg) translateX(-60px); opacity:0; }
  100%{ transform:rotateY(0deg) translateX(0); opacity:1; }
}

/* Card inner content */
.bl-card-inner{
  padding:30px 32px 26px;
  height:100%;
  display:flex;
  flex-direction:column;
}
.bl-card-img{
  width:100%;
  aspect-ratio:16/7;
  border-radius:10px;
  overflow:hidden;
  margin-bottom:18px;
  flex-shrink:0;
}
.bl-card-img .img-placeholder{
  width:100%;height:100%;
}
.bl-card-meta-top{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:8px;
}
.bl-card-cat{
  font-family:var(--fb);font-size:10px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
}
.bl-card-rtime{
  font-family:var(--fb);font-size:11px;font-weight:600;
  color:var(--orange);display:flex;align-items:center;gap:4px;
}
.bl-card-title{
  font-family:var(--fd);font-size:25px;font-weight:700;
  color:var(--brand-navy);line-height:1.25;
  letter-spacing:-.02em;margin:0 0 10px;
}
.bl-card-excerpt{
  font-family:var(--fb);font-size:13px;line-height:1.65;
  color:var(--muted);margin:0 0 12px;flex:1;
  display:-webkit-box;-webkit-line-clamp:4;
  -webkit-box-orient:vertical;overflow:hidden;
}
.bl-card-stakes{
  font-family:var(--fb);font-size:11.5px;color:var(--muted);
  font-style:italic;margin-bottom:14px;
  display:flex;gap:8px;flex-wrap:wrap;align-items:center;
}
.bl-card-stakes .stakes-divider{color:var(--border);font-style:normal;}
.bl-card-footer{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:14px;
  border-top:1px solid var(--border-lt);
  margin-top:auto;
}
.bl-card-footer .mood-tags{margin:0;}
.bl-read-btn{
  font-family:var(--fb);font-size:12.5px;font-weight:700;
  color:var(--brand-blue);text-decoration:none;
  display:flex;align-items:center;gap:5px;
  transition:gap .2s ease;flex-shrink:0;
}
.bl-read-btn:hover{gap:8px;}

/* Controls */
.booklet-controls{
  display:flex;align-items:center;justify-content:center;gap:14px;
  padding:4px 0;
}
.booklet-nav-btn{
  width:40px;height:40px;border-radius:50%;
  border:1.5px solid var(--border);
  background:#fff;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);
  transition:all .2s ease;
  flex-shrink:0;
}
.booklet-nav-btn:hover{
  background:var(--brand-navy);border-color:var(--brand-navy);color:#fff;
}
.booklet-nav-btn:disabled{opacity:.3;cursor:default;}
.booklet-counter-wrap{
  font-family:var(--fb);font-size:13px;font-weight:600;
  color:var(--brand-navy);display:flex;align-items:baseline;gap:4px;
  min-width:64px;justify-content:center;
}
#bl-current{font-size:20px;font-family:var(--fd);font-weight:700;color:var(--brand-blue);}
.bl-sep{color:var(--border);}
.bl-dots{
  display:flex;gap:5px;align-items:center;flex-wrap:wrap;
  max-width:200px;justify-content:center;
}
.bl-dot{
  width:5px;height:5px;border-radius:50%;
  background:var(--border-lt);cursor:pointer;
  transition:all .25s ease;flex-shrink:0;
}
.bl-dot.active{
  background:var(--brand-blue);
  width:16px;border-radius:3px;
}

/* Category filter pills */
.cat-filter{
  font-family:var(--fb);font-size:12px;font-weight:500;
  padding:5px 16px;border-radius:20px;
  border:1px solid var(--border);
  background:#fff;color:var(--muted);
  cursor:pointer;transition:all .2s ease;
}
.cat-filter:hover{border-color:var(--brand-navy);color:var(--brand-navy);}
.cat-filter.active{
  background:var(--brand-navy);border-color:var(--brand-navy);
  color:#fff;font-weight:600;
}

/* Sidebar */
.booklet-sidebar{
  position:sticky;top:56px;
}
.bks-title{
  font-family:var(--fb);font-size:10px;font-weight:700;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--light);border-bottom:1px solid var(--border);
  padding-bottom:10px;margin-bottom:12px;
}
.bks-list{display:flex;flex-direction:column;gap:0;}
.bks-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 0;border-bottom:1px solid var(--border-lt);
  cursor:pointer;transition:all .2s;
}
.bks-item:hover .bks-item-title{color:var(--brand-blue);}
.bks-item.active .bks-item-title{
  color:var(--brand-blue);font-weight:600;
}
.bks-item.active .bks-num{
  background:var(--brand-blue);color:#fff;
}
.bks-num{
  width:20px;height:20px;border-radius:50%;
  background:var(--border-lt);color:var(--light);
  font-family:var(--fb);font-size:10px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;
}
.bks-item-title{
  font-family:var(--fd);font-size:13.5px;font-weight:500;
  color:var(--text);line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;
  transition:color .2s;
}

/* ── MOBILE BOOKLET ── */
body.is-mobile .booklet-layout{grid-template-columns:1fr;}
body.is-mobile .booklet-sidebar{display:none;}
body.is-mobile .booklet-scene{height:auto;perspective:none;justify-content:stretch;}
body.is-mobile .booklet-fan{display:none;}
body.is-mobile .booklet-active{
  width:100%;min-height:auto;
  border-radius:12px;
  transform-origin:center center;
}
/* Mobile swipe hint */
body.is-mobile .booklet-controls{
  gap:10px;
  margin-top:4px;
}
body.is-mobile #bl-dots{display:none;}
@keyframes bookletFlipOut{
  0%  {transform:translateX(0)    rotate(0deg); opacity:1;}
  100%{transform:translateX(-80%) rotate(-6deg);opacity:0;}
}
@keyframes bookletFlipIn{
  0%  {transform:translateX(30%)  rotate(4deg); opacity:0;}
  100%{transform:translateX(0)    rotate(0deg); opacity:1;}
}


/* ════ DEV NOTES OVERLAY ════════════════════════════════════════════════ */
.dev-note-overlay{
  position:fixed;inset:0;
  background:rgba(10,16,40,.92);
  z-index:99999;
  overflow-y:auto;
  display:none;
  font-family:'Be Vietnam Pro',sans-serif;
}
.dev-note-overlay.open{display:block;}
.dev-note-inner{
  max-width:900px;margin:0 auto;
  padding:48px 40px 80px;
  color:#E8ECF4;
}
.dev-note-header{
  display:flex;align-items:flex-start;
  justify-content:space-between;gap:20px;
  border-bottom:1px solid rgba(255,255,255,.12);
  padding-bottom:24px;margin-bottom:36px;
}
.dev-note-header h1{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:36px;font-weight:700;color:#fff;
  line-height:1.15;margin:0;
}
.dev-note-header h1 span{color:#F5620A;}
.dev-note-header p{
  font-size:13px;color:rgba(255,255,255,.5);
  margin:8px 0 0;line-height:1.6;
}
.dev-close-btn{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15);
  color:rgba(255,255,255,.6);
  width:36px;height:36px;border-radius:50%;
  font-size:18px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:all .2s;
}
.dev-close-btn:hover{background:rgba(255,255,255,.15);color:#fff;}
.dev-section{margin-bottom:32px;}
.dev-section-title{
  font-size:10px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:#F5620A;
  margin-bottom:14px;display:flex;align-items:center;gap:10px;
}
.dev-section-title::after{content:'';flex:1;height:1px;background:rgba(255,255,255,.08);}
.dev-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.dev-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.09);
  border-radius:10px;padding:16px 18px;
}
.dev-card h4{
  font-size:13px;font-weight:700;color:#fff;
  margin:0 0 8px;display:flex;align-items:center;gap:7px;
}
.dev-card h4 .tag{
  font-size:9.5px;font-weight:600;padding:2px 8px;
  border-radius:20px;letter-spacing:.05em;
}
.tag-css{background:rgba(245,98,10,.2);color:#F5620A;}
.tag-js{background:rgba(32,53,200,.25);color:#7B96F5;}
.tag-php{background:rgba(11,175,74,.2);color:#3DD68C;}
.tag-html{background:rgba(255,200,50,.15);color:#F0C040;}
.dev-card ul{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:4px;
}
.dev-card ul li{
  font-size:12px;color:rgba(255,255,255,.6);
  padding-left:14px;position:relative;line-height:1.5;
}
.dev-card ul li::before{
  content:'→';position:absolute;left:0;
  color:rgba(255,255,255,.25);font-size:10px;top:2px;
}
.dev-card ul li strong{color:rgba(255,255,255,.85);}
.dev-file-row{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:7px;margin-bottom:8px;
}
.dev-file-name{
  font-family:'Courier New',monospace;
  font-size:12.5px;color:#7B96F5;font-weight:600;flex:1;
}
.dev-file-dest{
  font-size:11.5px;color:rgba(255,255,255,.4);
  font-family:'Courier New',monospace;
}
.dev-file-type{
  font-size:10px;font-weight:700;padding:2px 8px;
  border-radius:20px;flex-shrink:0;
}
.dev-note-footer{
  margin-top:40px;padding-top:20px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:12px;color:rgba(255,255,255,.3);
  display:flex;justify-content:space-between;align-items:center;
}
.dev-note-footer a{color:#F5620A;text-decoration:none;}
.nt-cap-nhat > div:last-child {
  border: none!important;
}

@media only screen and (max-width: 768px) {
	body {
		overflow-x: hidden;
	}
	.booklet-layout {
	margin-bottom: 50px;
	}
  .newsletter-form .wpcf7-form {
    grid-template-columns: 1fr;
  }
   .newsletter-form .wpcf7-form .wpcf7-submit {
    width: 100%;
  }
  #menu-main-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    flex-direction: column;
  }

  #menu-main-menu.is-open {
    max-height: 500px; /* hoặc đủ lớn */
  }
  .nac-top-nav .cat-links a {
    height: 40px;
    padding-left: 0;
    font-size: 16px;
  }
  .nac-top-nav .cat-links .current-menu-item > a {
    border: none;
  }
}