/* =========================================
   ĐIỆP VIÊN SỐ — MAIN STYLESHEET
   ========================================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  transition:
    background-color .3s,
    border-color .3s,
    transform .4s ease,
    opacity .3s;
}

:root{
  --bg:#02040a;
  --panel:#0b1018;
  --panel2:#101826;
  --white:#f5f7fb;
  --muted:#96a0b2;
  --red:#ff3434;
  --line:rgba(255,255,255,.06);
  /* Customizer variables */
  --accent-color: #ff3434;
  --accent-color-hover: #e02020;
}

html{ scroll-behavior:smooth; }

body{
  font-family:'Inter',sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255,52,52,.08), transparent 35%),
    radial-gradient(circle at bottom left, rgba(0,120,255,.06), transparent 30%),
    #02040a;
  color:var(--white);
  overflow-x:hidden;
  position:relative;
}

/* NOISE + GRID */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.04;
  background-image:url("https://grainy-gradients.vercel.app/noise.svg");
  mix-blend-mode:overlay;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size:60px 60px;
  mask-image:radial-gradient(circle at center, black 35%, transparent 90%);
}

img{ display:block; max-width:100%; }
a{ text-decoration:none; color:inherit; }

.container{
  width:min(1380px,92%);
  margin:auto;
}

section{ padding:160px 0; position:relative; }

/* =========================================
   HEADER
   ========================================= */
header{
  position:fixed;
  top:0; left:0;
  width:100%;
  z-index:5000;
  background:linear-gradient(to bottom, rgba(0,0,0,.82), rgba(0,0,0,.18));
  backdrop-filter:blur(22px);
  border-bottom:1px solid rgba(255,255,255,.04);
}

.navbar{
  height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-badge{
  width:42px; height:42px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:rgba(255,52,52,.12);
  border:1px solid rgba(255,52,52,.35);
  box-shadow:0 0 30px rgba(255,52,52,.22);
  font-size:22px;
}

.logo-text strong{
  display:block;
  font-size:18px;
  letter-spacing:.08em;
}

.logo-text span{
  font-size:10px;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--red);
}

/* Nav — hỗ trợ cả fallback <nav><a> lẫn WP menu <nav><div><ul><li><a> */
nav{
  display:flex;
  gap:28px;
  align-items:center;
}

/* WP menu wrapper — reset về flex inline */
nav .menu-main-menu-container,
nav ul.menu {
  display:contents; /* kế thừa flex của nav */
}

nav ul.menu {
  display:flex;
  gap:28px;
  align-items:center;
  list-style:none;
  margin:0; padding:0;
}

nav ul.menu li {
  margin:0; padding:0;
  list-style:none;
}

/* Ẩn sub-menu nếu có */
nav ul.menu li ul {
  display:none;
}

nav a,
nav ul.menu li a {
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.72;
  white-space:nowrap;
}

nav a:hover,
nav ul.menu li a:hover { opacity:1; }

/* Mobile menu toggle */
.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  flex-direction:column;
  gap:5px;
}

.nav-toggle span{
  display:block;
  width:24px; height:2px;
  background:var(--white);
  border-radius:2px;
  transition:all .3s ease;
}

.nav-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity:0; }
.nav-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.mobile-menu{
  display:none;
  flex-direction:column;
  gap:0;
  background:rgba(2,4,10,.98);
  border-top:1px solid rgba(255,255,255,.06);
  padding:20px 0;
}

/* Reset WP menu wrapper trong mobile */
.mobile-menu .menu-main-menu-container {
  display:contents;
}

.mobile-menu ul.menu {
  display:flex;
  flex-direction:column;
  list-style:none;
  margin:0; padding:0;
  width:100%;
}

.mobile-menu ul.menu li {
  margin:0; padding:0;
  list-style:none;
}

/* Ẩn sub-menu */
.mobile-menu ul.menu li ul { display:none; }

.mobile-menu a,
.mobile-menu ul.menu li a {
  display:block;
  padding:14px 24px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.72;
  border-bottom:1px solid rgba(255,255,255,.04);
}

.mobile-menu a:hover,
.mobile-menu ul.menu li a:hover { opacity:1; }
.mobile-menu.open{ display:flex; }

/* =========================================
   HERO
   ========================================= */
.hero{
  min-height:100vh;
  padding-top:120px;
  background:
    linear-gradient(90deg, rgba(2,4,10,.96) 0%, rgba(2,4,10,.88) 42%, rgba(2,4,10,.28) 100%),
    var(--hero-bg-url, url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=2400&auto=format&fit=crop')) center/cover no-repeat;
  position:relative;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(transparent 95%, rgba(255,255,255,.03));
  background-size:100% 4px;
  opacity:.18;
  mix-blend-mode:overlay;
  animation:scan 8s linear infinite;
}

@keyframes scan{
  from{ transform:translateY(-40px); }
  to{ transform:translateY(40px); }
}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:40px;
  align-items:center;
  min-height:calc(100vh - 120px);
}

.signal{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:30px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.signal-dot{
  width:10px; height:10px;
  border-radius:50%;
  background:var(--red);
  box-shadow:0 0 10px var(--red), 0 0 30px var(--red);
  animation:pulse 1.8s infinite;
}

@keyframes pulse{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.4); }
  100%{ transform:scale(1); }
}

.hero-title{
  position:relative;
  line-height:.82;
  margin-bottom:38px;
}

.hero-title .layer{
  display:block;
  font-family:'Anton',sans-serif;
  font-size:clamp(120px,14vw,240px);
  text-transform:uppercase;
  letter-spacing:-0.04em;
}

.hero-title .ghost{
  position:absolute;
  top:60px; left:120px;
  color:rgba(255,255,255,.04);
  transform:scale(1.08);
  pointer-events:none;
}

.hero-title .red{
  position:absolute;
  left:240px; top:130px;
  z-index:4;
  color:var(--red);
  text-shadow:0 0 18px rgba(255,52,52,.65), 0 0 60px rgba(255,52,52,.2);
  pointer-events:none;
}

.hero-desc{
  max-width:620px;
  font-size:18px;
  line-height:2;
  color:#c2c9d5;
  margin-bottom:42px;
}

.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn{
  height:58px;
  padding:0 34px;
  border:none;
  border-radius:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
}

.btn-primary{
  background:var(--red);
  color:white;
  box-shadow:0 10px 40px rgba(255,52,52,.28);
}

.btn-primary:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 50px rgba(255,52,52,.42);
}

.btn-secondary{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:var(--white);
}

.btn-secondary:hover{ background:rgba(255,255,255,.08); }

/* =========================================
   HUD
   ========================================= */
.hero-right{
  position:relative;
  min-height:620px;
}

.hud{
  position:absolute;
  padding:24px 26px;
  border-radius:26px;
  min-width:280px;
  background:linear-gradient(180deg, rgba(16,22,34,.86), rgba(8,11,18,.7));
  border:1px solid rgba(255,255,255,.06);
  backdrop-filter:blur(24px);
  overflow:hidden;
}

.hud::before{
  content:"";
  position:absolute;
  width:200px; height:200px;
  background:radial-gradient(circle, rgba(255,52,52,.12), transparent 70%);
  top:-100px; right:-80px;
}

.hud small{
  display:block;
  margin-bottom:12px;
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8d97a8;
}

.hud strong{ font-size:32px; font-weight:900; }

.hud-foot{
  margin-top:14px;
  font-size:10px;
  letter-spacing:.16em;
  color:#7f8898;
}

.hud-1{ top:60px; left:20px; }
.hud-2{ top:230px; right:10px; }
.hud-3{ bottom:120px; left:80px; }

.hud-2 strong{
  font-size:58px;
  color:var(--red);
}

/* =========================================
   TICKER
   ========================================= */
.ticker{
  position:absolute;
  bottom:0; left:0;
  width:100%; height:48px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:rgba(0,0,0,.45);
  border-top:1px solid rgba(255,255,255,.05);
}

.ticker-track{
  display:flex;
  gap:80px;
  white-space:nowrap;
  animation:ticker 24s linear infinite;
}

.ticker span{
  font-size:10px;
  font-weight:700;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:#a0a8b8;
}

.ticker span b{ color:var(--red); }

@keyframes ticker{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* =========================================
   SECTION HEAD
   ========================================= */
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:60px;
  margin-bottom:80px;
}

.section-head h2{
  font-family:'Anton',sans-serif;
  font-size:clamp(54px,6vw,92px);
  line-height:.95;
  letter-spacing:-0.02em;
  text-transform:uppercase;
  opacity:.96;
}

.section-head p{
  max-width:520px;
  line-height:2;
  color:var(--muted);
}

/* =========================================
   GRID
   ========================================= */
.grid-3{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:28px;
}

/* =========================================
   CASE CARDS
   ========================================= */
.case-card{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  min-height:650px;
  background:#090e17;
  border:1px solid rgba(255,255,255,.05);
}

.case-card:hover{
  transform:translateY(-10px);
  border-color:rgba(255,52,52,.18);
}

.case-card img{
  width:100%; height:100%;
  object-fit:cover;
  transition:1.2s ease;
}

.case-card:hover img{ transform:scale(1.08); }

.case-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.95) 5%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.08) 100%);
  z-index:1;
}

.case-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent, rgba(255,52,52,.08));
  opacity:0;
  z-index:2;
}

.case-card:hover::after{ opacity:1; }

.case-content{
  position:absolute;
  bottom:0; left:0;
  width:100%;
  padding:42px;
  z-index:4;
}

.case-tag{
  font-size:10px;
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:16px;
}

.case-meta{
  display:flex;
  gap:14px;
  margin-bottom:20px;
  flex-wrap:wrap;
}

.case-meta span{
  font-size:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  color:#c0c8d4;
}

.case-content h3{
  font-size:44px;
  line-height:1.05;
  margin-bottom:20px;
}

.case-content ul{
  margin-left:18px;
  line-height:2;
  color:#bcc5d1;
}

.case-link{
  display:inline-block;
  margin-top:24px;
  font-weight:800;
  color:var(--red);
}

/* =========================================
   PROCESS
   ========================================= */
.process-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.process{
  padding:36px;
  border-radius:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.05);
  position:relative;
  overflow:hidden;
}

.process:hover{
  transform:translateY(-6px);
  border-color:rgba(255,52,52,.16);
}

.process-number{
  position:absolute;
  top:-12px; right:10px;
  font-family:'Anton',sans-serif;
  font-size:120px;
  color:rgba(255,255,255,.04);
  line-height:1;
}

.process h3{
  font-size:34px;
  margin-bottom:14px;
}

.process p{
  line-height:1.9;
  color:#9ca6b7;
}

/* =========================================
   RADAR
   ========================================= */
.radar-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:20px;
}

.radar{
  position:relative;
  overflow:hidden;
  padding:30px;
  text-align:center;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.05);
}

.radar::before{
  content:"";
  position:absolute;
  width:180px; height:180px;
  background:radial-gradient(circle, rgba(255,52,52,.18), transparent 70%);
  top:-60px; right:-60px;
  opacity:.4;
}

.radar:hover{
  transform:translateY(-6px);
  border-color:rgba(255,52,52,.25);
  box-shadow:0 10px 40px rgba(255,52,52,.12);
}

.radar strong{
  display:block;
  margin:10px 0;
  font-size:38px;
  color:var(--red);
}

.radar-icon{ font-size:28px; }
.radar-label{ font-size:12px; color:var(--muted); }

/* =========================================
   QUOTE
   ========================================= */
.quote{
  padding:240px 0;
  text-align:center;
}

.quote-wrap{
  position:relative;
  max-width:1200px;
  margin:auto;
}

.quote-bg{
  font-family:'Anton',sans-serif;
  font-size:clamp(100px,11vw,220px);
  line-height:.88;
  text-transform:uppercase;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.72));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.quote-red{
  position:absolute;
  left:50%; top:40%;
  transform:translate(-50%,-50%);
  font-family:'Anton',sans-serif;
  font-size:clamp(70px,8vw,160px);
  color:#ff3b30;
  filter:blur(.2px);
}

.quote small{
  display:block;
  margin-top:30px;
  color:#8d97a8;
}

/* =========================================
   NEWSLETTER
   ========================================= */
.newsletter{
  position:relative;
  overflow:hidden;
  padding:80px;
  border-radius:40px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:50px;
  background:linear-gradient(90deg, rgba(255,52,52,.16), rgba(0,120,255,.12));
}

.newsletter::before{
  content:"";
  position:absolute;
  width:500px; height:500px;
  background:radial-gradient(circle, rgba(255,52,52,.18), transparent 70%);
  top:-250px; right:-180px;
}

.newsletter h2{
  font-family:'Anton',sans-serif;
  font-size:82px;
  line-height:.9;
  text-transform:uppercase;
  margin-bottom:14px;
}

.newsletter p{
  max-width:520px;
  line-height:1.9;
  color:#d0d6e0;
}

.news-form{
  display:flex;
  gap:16px;
  width:100%;
  max-width:620px;
}

.news-form input{
  flex:1;
  height:64px;
  border:none;
  outline:none;
  border-radius:16px;
  background:#090d15;
  padding:0 22px;
  color:white;
  font-family:'Inter',sans-serif;
  font-size:15px;
}

.news-form input::placeholder{ color:#4a5568; }

/* =========================================
   FOOTER
   ========================================= */
footer{
  padding:120px 0 50px;
  border-top:1px solid rgba(255,255,255,.04);
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:50px;
}

.footer-brand p{
  max-width:420px;
  margin-top:24px;
  line-height:2;
  color:#8d97a8;
}

footer h4{ margin-bottom:20px; font-size:14px; letter-spacing:.1em; }

footer ul{ list-style:none; }

footer li{
  margin-bottom:14px;
  color:#aab3c0;
  font-size:14px;
}

footer li a{ color:#aab3c0; transition:color .2s; }
footer li a:hover{ color:var(--white); }

.copyright{
  margin-top:60px;
  padding-top:30px;
  border-top:1px solid rgba(255,255,255,.04);
  text-align:center;
  color:#7b8493;
  font-size:13px;
}

/* =========================================
   WP STANDARD CLASSES
   ========================================= */
.wp-block-image img{ border-radius:16px; }
.alignnone, .alignleft, .alignright, .aligncenter{ max-width:100%; }
.aligncenter{ display:block; margin:0 auto; }
.alignleft{ float:left; margin:0 20px 20px 0; }
.alignright{ float:right; margin:0 0 20px 20px; }

/* Single post */
/* entry-content cho page.php (không có sidebar) */
.page-template-default .entry-content,
.page .entry-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 160px 0 80px;
  line-height: 1.9;
  color: #c2c9d5;
  font-size: 17px;
}

/* Base styles dùng chung cho mọi entry-content */
.entry-content h1,.entry-content h2,.entry-content h3{
  font-family:'Anton',sans-serif;
  margin:48px 0 20px;
  letter-spacing:-.02em;
  color:var(--white);
}

.entry-content h1{ font-size:clamp(42px,5vw,72px); }
.entry-content h2{ font-size:clamp(32px,4vw,52px); }
.entry-content h3{ font-size:clamp(24px,3vw,38px); }
.entry-content p{ margin-bottom:24px; }

.entry-content a{
  color:var(--red);
  border-bottom:1px solid rgba(255,52,52,.3);
}

.entry-content a:hover{ border-bottom-color:var(--red); }

.entry-content ul, .entry-content ol{
  margin:0 0 24px 28px;
  line-height:2;
}

.entry-content blockquote{
  border-left:3px solid var(--red);
  margin:40px 0;
  padding:20px 30px;
  background:rgba(255,52,52,.05);
  border-radius:0 16px 16px 0;
  font-size:20px;
  font-style:italic;
  color:var(--white);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media(max-width:1200px){

  .hero-grid,
  .grid-3,
  .process-grid,
  .footer-grid,
  .newsletter{
    grid-template-columns:1fr;
  }

  .radar-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .hero-title .red{
    position:relative;
    left:0; top:0;
    display:block;
  }

  .hero-right{ min-height:400px; }
  .newsletter{ padding:60px 40px; flex-direction:column; }
  .newsletter h2{ font-size:64px; }
}

@media(max-width:768px){

  nav{ display:flex; }
  .nav-toggle{ display:flex; }

  section{ padding:100px 0; }

  .hero-title .layer{ font-size:92px; }
  .hero-title .ghost{ display:none; }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .section-head h2{ font-size:58px; }

  .case-card{ min-height:520px; }
  .case-content h3{ font-size:34px; }
  .case-content{ padding:28px; }

  .quote{ padding:120px 0; }
  .quote-bg{ font-size:74px; line-height:.95; }
  .quote-red{ font-size:52px; }

  .newsletter{
    padding:40px 28px;
    border-radius:28px;
  }

  .newsletter h2{ font-size:54px; }

  .news-form{ flex-direction:column; }
  .news-form input{ height:56px; }

  .radar-grid{ grid-template-columns:repeat(2,1fr); }

  .hud{ position:relative !important; top:auto !important; left:auto !important; right:auto !important; bottom:auto !important; min-width:unset; margin-bottom:16px; }

  .hero-right{ min-height:auto; display:flex; flex-direction:column; gap:0; }

  footer{ padding:80px 0 40px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1/-1; }

  .process-grid{ grid-template-columns:repeat(2,1fr); }
}

@media(max-width:480px){
  .hero-title .layer{ font-size:68px; }
  .section-head h2{ font-size:44px; }
  .radar-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr; }
  .process-grid{ grid-template-columns:1fr; }
  .newsletter h2{ font-size:40px; }
  .btn{ height:52px; padding:0 24px; font-size:13px; }
}


/* =========================================
   ARCHIVE / CATEGORY / TAG PAGES
   ========================================= */

.archive-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.archive-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,52,52,.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(0,120,255,.06), transparent 35%);
  pointer-events: none;
}

.archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-breadcrumb a { color: var(--muted); }
.archive-breadcrumb a:hover { color: var(--white); }
.archive-breadcrumb .sep { color: rgba(255,255,255,.2); }
.archive-breadcrumb .current { color: var(--red); }

.archive-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255,52,52,.1);
  border: 1px solid rgba(255,52,52,.25);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.archive-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(54px, 7vw, 110px);
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.archive-desc {
  max-width: 640px;
  font-size: 17px;
  line-height: 2;
  color: #b0b9c8;
  margin-bottom: 36px;
}

.archive-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.archive-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.archive-stat strong {
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
}

.archive-stat span {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Filter / Sort Bar */
.archive-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.archive-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.archive-filter-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #b0b9c8;
  transition: all .2s;
  white-space: nowrap;
}

.tag-chip:hover,
.tag-chip.active {
  background: rgba(255,52,52,.12);
  border-color: rgba(255,52,52,.3);
  color: var(--white);
}

.archive-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Post Grid — archive uses 2-col on large */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Featured first post spans 2 cols */
.archive-grid .case-card:first-child {
  grid-column: span 2;
  min-height: 560px;
}

.archive-grid .case-card:first-child .case-content h3 {
  font-size: 52px;
}

/* Pagination */
.dvs-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 100px;
  flex-wrap: wrap;
}

.dvs-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: all .2s;
}

.dvs-pagination .page-numbers:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.14);
}

.dvs-pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,52,52,.35);
}

.dvs-pagination .page-numbers.prev,
.dvs-pagination .page-numbers.next {
  width: auto;
  padding: 0 20px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dvs-pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
  color: var(--muted);
  cursor: default;
}

/* Related tags cloud */
.tag-cloud-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

.tag-cloud-section h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* No results */
.no-results-wrap {
  text-align: center;
  padding: 120px 0;
}

.no-results-wrap .nr-icon {
  font-size: 72px;
  margin-bottom: 24px;
  opacity: .5;
}

.no-results-wrap h3 {
  font-family: 'Anton', sans-serif;
  font-size: 52px;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.no-results-wrap p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}

/* =========================================
   RESPONSIVE — ARCHIVE
   ========================================= */
@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid .case-card:first-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  .archive-hero { padding: 130px 0 60px; }
  .archive-title { font-size: 52px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid .case-card:first-child { grid-column: span 1; min-height: 440px; }
  .archive-grid .case-card:first-child .case-content h3 { font-size: 36px; }
  .archive-bar { flex-direction: column; align-items: flex-start; }
  .dvs-pagination .page-numbers { width: 42px; height: 42px; border-radius: 10px; }
}

@media (max-width: 480px) {
  .archive-title { font-size: 40px; }
  .archive-stats { gap: 20px; }
}


/* =========================================
   RADAR — UPDATED CARD LAYOUT
   ========================================= */
.radar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  padding: 28px;
}

.radar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 14px;
}

.radar-trend-up      { font-size: 12px; font-weight: 900; color: #ff3434; letter-spacing: .08em; }
.radar-trend-down    { font-size: 12px; font-weight: 900; color: #22c55e; letter-spacing: .08em; }
.radar-trend-neutral { font-size: 12px; font-weight: 900; color: #96a0b2; letter-spacing: .08em; }

.radar strong {
  display: block;
  font-size: 32px;
  margin: 0 0 4px;
}

.radar-label { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.radar-sublabel { font-size: 11px; color: var(--muted); letter-spacing: .06em; }

.radar-updated {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
  width: 100%;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
}

.radar-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  margin-right: 6px;
  animation: pulse 2s infinite;
}


/* =========================================
   CUSTOM LOGO (ảnh upload qua Site Identity)
   ========================================= */
.logo-image {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Không để logo đẩy nav items */
  min-width: 0;
  flex-shrink: 0;
}

/* Header logo — fix SVG cần height cố định, không dùng auto */
.logo-image .custom-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  /* Đảm bảo SVG không bị collapse */
  min-width: 0;
  flex-shrink: 0;
}

/* Footer logo */
.logo-image .footer-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
  opacity: .85;
  flex-shrink: 0;
}

.logo-tagline-img {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .logo-image .custom-logo  { max-height: 32px; max-width: 130px; }
  .logo-image .footer-logo  { max-height: 28px; max-width: 120px; }
}


/* =========================================
   SINGLE POST — LAYOUT
   ========================================= */

.single-wrap {
  padding-top: 84px; /* header height */
}

/* Hero */
.single-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.single-hero-img {
  position: absolute;
  inset: 0;
}

.single-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2,4,10,1) 0%,
    rgba(2,4,10,.82) 40%,
    rgba(2,4,10,.3) 100%
  );
}

.single-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 60px;
  width: 100%;
  /* Căn giữa toàn bộ nội dung hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.single-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

/* ---- Tiêu đề bài viết ---- */
.single-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 860px;
  word-break: break-word;
  hyphens: auto;
  text-align: center;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.single-meta-bar-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.smeta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #9ca6b7;
  text-transform: uppercase;
}

.smeta-icon { font-size: 14px; }

.signal-badge {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,52,52,.1);
  border: 1px solid rgba(255,52,52,.25);
  color: var(--red) !important;
}

/* ---- Layout 2 cột ---- */
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 120px;
  align-items: start;
}

/* ---- Nội dung ---- */
.single-content-col {
  min-width: 0;
}

/* entry-content trong single.php (có sidebar, full width cột) */
.single-content-col .entry-content {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 1.95;
  color: #c2c9d5;
  font-size: 17px;
}

.entry-content h1 { font-size: clamp(28px,3.5vw,48px); }
.entry-content h2 { font-size: clamp(22px,2.8vw,38px); }
.entry-content h3 { font-size: clamp(18px,2.2vw,28px); }

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: 'Anton', sans-serif;
  margin: 52px 0 18px;
  letter-spacing: -.01em;
  color: var(--white);
  line-height: 1.15;
  scroll-margin-top: 110px;
}

.entry-content p { margin-bottom: 22px; }

.entry-content a {
  color: var(--red);
  border-bottom: 1px solid rgba(255,52,52,.3);
}
.entry-content a:hover { border-bottom-color: var(--red); }

.entry-content ul,
.entry-content ol {
  margin: 0 0 22px 26px;
  line-height: 2;
}

.entry-content li { margin-bottom: 6px; }

.entry-content blockquote {
  border-left: 3px solid var(--red);
  margin: 44px 0;
  padding: 22px 28px;
  background: rgba(255,52,52,.05);
  border-radius: 0 16px 16px 0;
  font-size: 19px;
  font-style: italic;
  color: var(--white);
  line-height: 1.7;
}

.entry-content img {
  border-radius: 14px;
  margin: 32px 0;
  width: 100%;
  height: auto;
}

.entry-content figure { margin: 32px 0; }
.entry-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

/* ---- INLINE RELATED (giữa bài) ---- */
.inline-related {
  margin: 52px 0;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,52,52,.06), rgba(0,120,255,.04));
  border: 1px solid rgba(255,255,255,.07);
}

.inline-related-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}

.inline-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.inline-related-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  transition: border-color .2s, transform .2s;
}

.inline-related-card:hover {
  border-color: rgba(255,52,52,.2);
  transform: translateY(-3px);
}

.irc-thumb {
  width: 80px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.irc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
}

.irc-body { flex: 1; min-width: 0; }

.irc-cat {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.irc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.irc-read {
  font-size: 11px;
  color: var(--red);
  margin-top: 8px;
  font-weight: 700;
}

/* ---- BOX TAXONOMY ---- */
.single-taxonomy-box {
  margin-top: 60px;
  padding: 32px 40px;
  border-radius: 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;      /* căn giữa theo chiều ngang */
  text-align: center;
}

.stax-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.stax-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  width: 100%;               /* chiếm hết dòng — label đứng riêng 1 dòng */
  text-align: center;
}

.stax-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.stax-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  font-size: 12px;
  font-weight: 600;
  color: #c0c8d4;
  transition: all .2s;
}

.stax-chip:hover {
  background: rgba(255,52,52,.1);
  border-color: rgba(255,52,52,.25);
  color: var(--white);
}

.stax-chip-cat {
  background: rgba(255,52,52,.08);
  border-color: rgba(255,52,52,.2);
  color: var(--red);
}

.stax-count {
  font-size: 10px;
  opacity: .5;
  font-weight: 400;
}

/* ---- TIMELINE HỒ SƠ LIÊN QUAN ---- */
.related-timeline-wrap {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.related-timeline-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
}

.related-timeline-head h3 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
}

.related-timeline {
  position: relative;
}

.rtl-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 0 24px;
  margin-bottom: 0;
  position: relative;
}

/* Dot + line */
.rtl-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.rtl-dot-inner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid rgba(255,52,52,.4);
  box-shadow: 0 0 12px rgba(255,52,52,.4);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.rtl-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(255,52,52,.3), rgba(255,255,255,.05));
  margin-top: 6px;
}

/* Body */
.rtl-body {
  padding-bottom: 44px;
  min-width: 0;
}

.rtl-cat {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.rtl-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 10px;
  transition: color .2s;
}

.rtl-title:hover { color: var(--red); }

.rtl-desc {
  font-size: 14px;
  color: #8d97a8;
  line-height: 1.75;
  margin-bottom: 14px;
}

.rtl-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  color: #6b7484;
  flex-wrap: wrap;
}

.rtl-link {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  margin-left: auto;
}

/* Thumbnail */
.rtl-thumb {
  width: 120px;
  height: 90px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 2px;
  align-self: start;
}

.rtl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- PREV / NEXT ---- */
.single-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.spn-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  transition: all .2s;
}

.spn-card:hover {
  border-color: rgba(255,52,52,.2);
  background: rgba(255,52,52,.04);
}

.spn-next { text-align: right; }

.spn-dir {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}

.spn-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   SIDEBAR — MỤC LỤC (TOC)
   ========================================= */
.single-toc-col {
  min-width: 0;
}

.toc-sticky {
  position: sticky;
  top: 104px; /* header + gap */
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,52,52,.3) transparent;
}

.toc-sticky::-webkit-scrollbar { width: 4px; }
.toc-sticky::-webkit-scrollbar-thumb { background: rgba(255,52,52,.3); border-radius: 2px; }

.toc-box {
  border-radius: 20px;
  background: rgba(11,16,24,.92);
  border: 1px solid rgba(255,255,255,.07);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.toc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}

.toc-icon { font-size: 15px; }

.toc-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .2s;
}

.toc-toggle:hover { background: rgba(255,255,255,.07); }

.toc-nav {
  /* Không set max-height ở đây — để JS + media query xử lý */
  overflow: hidden;
}

.toc-loading, .toc-empty {
  padding: 16px 20px;
  font-size: 12px;
  color: var(--muted);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.toc-item { margin: 0; }

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 20px;
  font-size: 12px;
  line-height: 1.55;
  color: #8d97a8;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all .2s;
  /* Cho phép xuống dòng — không cắt bớt */
  white-space: normal;
  word-break: break-word;
  overflow: visible;
}

.toc-link:hover {
  color: var(--white);
  background: rgba(255,255,255,.03);
}

.toc-link.active {
  color: var(--white);
  border-left-color: var(--red);
  background: rgba(255,52,52,.06);
}

.toc-h3 .toc-link {
  padding-left: 34px;
  font-size: 11px;
}

.toc-num {
  color: var(--red);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.toc-sub-dot {
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* ---- Sidebar related posts ---- */
.sidebar-related-list {
  padding: 12px 0;
}

.srl-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  transition: background .2s;
}

.srl-item:hover { background: rgba(255,255,255,.03); }

.srl-thumb {
  width: 58px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.srl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.srl-body { flex: 1; min-width: 0; }

.srl-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.srl-date {
  font-size: 10px;
  color: var(--muted);
}

.sidebar-related-more {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 1px solid rgba(255,255,255,.06);
  transition: background .2s;
}

.sidebar-related-more:hover { background: rgba(255,52,52,.06); }

/* =========================================
   SINGLE — RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .single-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }
}

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

  /* TOC chuyển lên trên nội dung, không sticky */
  .single-toc-col {
    order: -1;
  }

  .toc-sticky {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .rtl-thumb { display: none; }
}

@media (max-width: 640px) {
  .single-hero { min-height: 360px; }

  .single-title { font-size: 28px; }

  .inline-related-grid { grid-template-columns: 1fr; }

  .single-prevnext { grid-template-columns: 1fr; }

  .rtl-item { grid-template-columns: 24px 1fr; }

  .stax-row { flex-direction: column; gap: 10px; }
  .stax-label { min-width: unset; }
}


/* TOC — header clickable (mọi màn hình) */
.toc-box .toc-head {
  cursor: pointer;
  user-select: none;
}

.toc-box .toc-head:hover {
  background: rgba(255,255,255,.04);
}

/* Transition cho cả desktop lẫn mobile */
.toc-nav {
  max-height: 2000px;
  transition: max-height .35s ease, opacity .3s ease;
  opacity: 1;
}

.toc-nav.toc-collapsed {
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
}
