﻿/*
Theme Name: Doan Thanh Nien
Theme URI: https://doanthanhnien.com.vn
Author: VNSecurity
Author URI: https://doanthanhnien.com.vn
Description: Theme cong thong tin dien tu Doan TNCS Ho Chi Minh - doanthanhnien.com.vn. Thiet ke do - vang dac trung, responsive, chuan SEO.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doanthanhnien
Tags: news, magazine, red, custom-menu, featured-images, right-sidebar, translation-ready
*/
/* =========================================================
   ÄoÃ n TNCS Há»“ ChÃ­ Minh - doanthanhnien.com.vn
   Theme stylesheet (HTML mockup - chuáº©n bá»‹ chuyá»ƒn sang WP)
   v2 - polished
   ========================================================= */

:root {
  --red: #d62828;
  --red-dark: #a91d1d;
  --red-darker: #800f0f;
  --yellow: #ffd60a;
  --yellow-soft: #ffe066;
  --blue: #0a4d8c;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e9eaee;
  --bg: #f3f4f7;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 20, 40, .10);
  --shadow-sm: 0 4px 14px rgba(20, 20, 40, .06);
  --shadow-hover: 0 18px 40px rgba(166, 23, 23, .18);
  --container: 1200px;
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(90deg, #6e0c0c, var(--red-darker));
  color: #ffe9e9;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar .slogan { font-weight: 500; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; }
.topbar .slogan::before { content: "â˜…"; color: var(--yellow); font-size: 12px; }
.topbar .slogan strong { color: var(--yellow); }
.topbar .top-right { display: flex; align-items: center; gap: 18px; }
.topbar .top-right a { color: #ffe9e9; }
.topbar .top-right a:hover { color: var(--yellow); }
.topbar .socials { display: flex; gap: 8px; }
.topbar .socials a {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  font-size: 12px;
  transition: .25s;
}
.topbar .socials a:hover { background: var(--yellow); color: var(--red-darker); border-color: var(--yellow); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background:
    linear-gradient(95deg, rgba(128,15,15,.97) 0%, rgba(190,28,28,.94) 55%, rgba(214,40,40,.9) 100%),
    url("https://picsum.photos/1600/300?grayscale") center/cover;
  color: #fff;
  overflow: hidden;
}
.site-header::before {
  content: ""; position: absolute; top: 0; right: -120px; bottom: 0; width: 380px;
  background: linear-gradient(120deg, transparent, rgba(255,214,10,.16));
  transform: skewX(-18deg);
  pointer-events: none;
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--yellow), #ffb703, var(--yellow));
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand .emblem {
  width: 80px; height: 80px;
  flex: 0 0 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff0a6, var(--yellow) 55%, #f4b400);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.3), 0 0 0 4px rgba(255,255,255,.2);
  position: relative;
}
.brand .emblem svg { width: 56px; height: 56px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.brand .brand-text h1 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.brand .brand-text .sub {
  font-size: 13px;
  color: var(--yellow-soft);
  font-weight: 500;
  margin-top: 3px;
}
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.search-box {
  display: flex;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 30px;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
.search-box input {
  border: 0; background: transparent; color: #fff;
  padding: 10px 18px; width: 210px; outline: none; font-size: 14px;
}
.search-box input::placeholder { color: rgba(255,255,255,.78); }
.search-box button {
  border: 0; background: var(--yellow); color: var(--red-dark);
  padding: 0 16px; cursor: pointer; font-weight: 700; transition: .2s;
}
.search-box button:hover { background: #fff; }
.header-date { font-size: 13px; text-align: right; color: #ffe9e9; line-height: 1.4; }

/* ---------- Navigation ---------- */
.navbar { background: var(--red); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 16px rgba(166,23,23,.25); transition: background .3s; }
.navbar.stuck { background: var(--red-dark); }
.nav-inner { display: flex; align-items: center; }
.menu { display: flex; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-transform: uppercase;
  padding: 15px 18px;
  letter-spacing: .3px;
  position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 8px; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu > li > a:hover::after,
.menu > li.active > a::after { transform: scaleX(1); }
.menu > li > a:hover,
.menu > li.active > a { background: rgba(0,0,0,.12); color: var(--yellow); }
.menu > li.has-sub > a .car { font-size: 10px; opacity: .85; margin-left: 3px; }
.submenu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 234px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--yellow);
  border-radius: 0 0 10px 10px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .22s;
  z-index: 60;
  overflow: hidden;
}
.menu > li:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a {
  display: block;
  padding: 11px 18px;
  color: var(--ink);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.submenu li:last-child a { border-bottom: 0; }
.submenu li a:hover { background: #fff5f5; color: var(--red); padding-left: 24px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; padding: 12px 16px; cursor: pointer; margin-left: auto; }

/* ---------- Breaking / running news ---------- */
.breaking {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.breaking .container { display: flex; align-items: center; gap: 14px; height: 48px; overflow: hidden; }
.breaking .label {
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; padding: 6px 14px; border-radius: 6px; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(214,40,40,.3);
}
.breaking .ticker { white-space: nowrap; overflow: hidden; flex: 1; }
.breaking .ticker span { display: inline-block; padding-left: 100%; animation: ticker 26s linear infinite; color: var(--muted); }
.breaking .ticker:hover span { animation-play-state: paused; }
.breaking .ticker a { font-weight: 500; color: var(--ink); }
.breaking .ticker a:hover { color: var(--red); }
@keyframes ticker { 0% { transform: translateX(0);} 100% { transform: translateX(-100%);} }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 14px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.slider {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: #ddd;
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s; transform: scale(1.04); }
.slide.active { opacity: 1; transform: scale(1); transition: opacity .7s, transform 6s ease-out; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 50px 24px 22px;
  background: linear-gradient(transparent, rgba(60,0,0,.45) 35%, rgba(40,0,0,.9));
  color: #fff;
}
.slide .caption .tag {
  display: inline-block; background: var(--yellow); color: var(--red-dark);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 30px;
  text-transform: uppercase; margin-bottom: 10px; letter-spacing: .3px;
}
.slide .caption h2 { font-size: 23px; line-height: 1.32; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.slider-dots { position: absolute; bottom: 16px; right: 20px; display: flex; gap: 8px; z-index: 5; }
.slider-dots button { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: .25s; }
.slider-dots button.active { background: var(--yellow); border-color: var(--yellow); width: 28px; border-radius: 6px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.35); color: #fff; font-size: 20px; cursor: pointer; z-index: 5;
  opacity: 0; transition: .25s; backdrop-filter: blur(3px);
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--red); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.hero-side .mini {
  display: flex; gap: 12px; background: #fff; border-radius: var(--radius-sm);
  padding: 10px; box-shadow: var(--shadow-sm); flex: 1; transition: .25s; border: 1px solid transparent;
}
.hero-side .mini:hover { box-shadow: var(--shadow); transform: translateX(4px); border-color: #ffe0e0; }
.hero-side .mini img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; flex: 0 0 112px; }
.hero-side .mini .m-tag { font-size: 11.5px; color: var(--red); font-weight: 700; text-transform: uppercase; }
.hero-side .mini h3 { font-size: 14.5px; line-height: 1.35; margin-top: 4px; }

/* ---------- Stats band ---------- */
.stats {
  background: linear-gradient(120deg, var(--red-darker), var(--red) 60%, #e23b3b);
  color: #fff; position: relative; overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(255,214,10,.18), transparent 40%),
              radial-gradient(circle at 85% 90%, rgba(255,255,255,.1), transparent 45%);
}
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 16px; position: relative; z-index: 2; }
.stat { text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: -10px; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.2); }
.stat .num { font-size: 36px; font-weight: 800; color: var(--yellow); line-height: 1; }
.stat .num small { font-size: 22px; }
.stat .lbl { font-size: 13.5px; margin-top: 8px; color: #ffe9e9; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Quick links ---------- */
.quicklinks { padding: 30px 0 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.quick-item {
  background: #fff; border-radius: var(--radius); padding: 22px 10px 18px; text-align: center;
  box-shadow: var(--shadow-sm); transition: .28s; position: relative; overflow: hidden;
}
.quick-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.quick-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.quick-item:hover::after { transform: scaleX(1); }
.quick-item .ic {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 16px;
  background: linear-gradient(135deg, #fff0f0, #ffe0e0); color: var(--red);
  display: grid; place-items: center; font-size: 24px; transition: .3s;
}
.quick-item:hover .ic { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; transform: rotate(-6deg) scale(1.05); }
.quick-item span { font-size: 13.5px; font-weight: 600; color: var(--ink); }

/* ---------- Section common ---------- */
.section { padding: 32px 0; }
.section-tinted { background: linear-gradient(180deg, #fff, #fbfbfc); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.section-head h2 {
  font-size: 20px; text-transform: uppercase; color: var(--ink);
  position: relative; padding-left: 16px; letter-spacing: .3px; font-weight: 800;
}
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; border-radius: 3px;
  background: linear-gradient(var(--red), var(--yellow));
}
.section-head .more {
  font-size: 13px; color: var(--red); font-weight: 700; display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border: 1px solid #f0d2d2; border-radius: 30px; transition: .25s;
}
.section-head .more:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ---------- Main + sidebar layout ---------- */
.main-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; }

/* thumb badge */
.thumb { position: relative; }
.thumb .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 11px; border-radius: 30px; text-transform: uppercase; letter-spacing: .3px;
  box-shadow: 0 4px 10px rgba(214,40,40,.35);
}

/* Featured big card */
.feature-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 22px; transition: .3s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.feature-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feature-card:hover .thumb img { transform: scale(1.06); }
.feature-card .body { padding: 18px 20px 20px; }
.feature-card .body h3 { font-size: 20px; line-height: 1.35; font-weight: 700; }
.feature-card .body .excerpt { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; align-items: center; }
.meta .cat { color: var(--red); font-weight: 700; }

/* News list */
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-item {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .3s;
}
.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-item .thumb { aspect-ratio: 16/10; overflow: hidden; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-item:hover .thumb img { transform: scale(1.07); }
.news-item .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.news-item h3 { font-size: 15.5px; line-height: 1.4; font-weight: 600; }
.news-item .excerpt { font-size: 13.5px; color: var(--muted); margin-top: 7px; flex: 1; }

/* compact list (text rows) */
.list-rows li { padding: 11px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; }
.list-rows li:last-child { border-bottom: 0; }
.list-rows .num {
  flex: 0 0 26px; height: 26px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; border-radius: 8px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.list-rows a { font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.list-rows .d { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

/* ---------- Sidebar widgets ---------- */
.widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 24px; overflow: hidden; }
.widget .w-head {
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 13px 18px; font-weight: 700;
  text-transform: uppercase; font-size: 14.5px; display: flex; align-items: center; gap: 8px;
  position: relative;
}
.widget .w-head::after { content: ""; position: absolute; left: 18px; bottom: 0; width: 40px; height: 3px; background: var(--yellow); }
.widget .w-body { padding: 16px 18px; }

/* documents widget */
.doc-list li { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list .doc-ic { flex: 0 0 36px; height: 42px; background: linear-gradient(135deg,#fff0f0,#ffe0e0); color: var(--red); border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.doc-list a { font-size: 13.8px; font-weight: 500; line-height: 1.35; }
.doc-list .code { font-size: 12px; color: var(--muted); display: block; margin-top: 3px; }

/* calendar widget */
.cal-list li { padding: 11px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.cal-list li:last-child { border-bottom: 0; }
.cal-list .date-chip {
  flex: 0 0 54px; text-align: center; background: linear-gradient(135deg, var(--blue), #0b5ba8); color: #fff; border-radius: 10px; padding: 7px 0;
  display: grid; place-items: center; min-height: 50px;
}
.cal-list .date-chip .dd { font-size: 19px; font-weight: 800; line-height: 1; }
.cal-list .date-chip .mm { font-size: 11px; text-transform: uppercase; margin-top: 2px; }
.cal-list .ev h4 { font-size: 14px; line-height: 1.35; }
.cal-list .ev .time { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* banners */
.side-banner { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-sm); transition: .3s; }
.side-banner:hover { box-shadow: var(--shadow); }
.side-banner img { transition: transform .5s; }
.side-banner:hover img { transform: scale(1.05); }

/* ---------- Org categories tri-section ---------- */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tri-col .tri-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--line); position: relative;
}
.tri-col .tri-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 70px; height: 2px; background: var(--red); }
.tri-col .tri-head .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #ffe0e0; }
.tri-col .tri-head h3 { font-size: 16px; text-transform: uppercase; color: var(--red); font-weight: 800; }
.tri-lead { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 14px; transition: .3s; }
.tri-lead:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tri-lead .thumb { overflow: hidden; }
.tri-lead img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s; }
.tri-lead:hover img { transform: scale(1.06); }
.tri-lead .b { padding: 13px 15px; }
.tri-lead h4 { font-size: 15.5px; line-height: 1.4; font-weight: 600; }
.tri-col ul li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tri-col ul li:last-child { border-bottom: 0; }
.tri-col ul a { font-size: 14px; font-weight: 500; padding-left: 18px; position: relative; display: block; line-height: 1.4; transition: .2s; }
.tri-col ul a::before { content: "â€º"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.tri-col ul a:hover { padding-left: 23px; }

/* ---------- Learning HCM banner ---------- */
.hcm-band {
  background:
    radial-gradient(circle at 88% 15%, rgba(255,214,10,.18), transparent 40%),
    linear-gradient(120deg, var(--red-darker), var(--red));
  color: #fff; border-radius: 18px; padding: 36px; display: flex; gap: 30px; align-items: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hcm-band .hcm-img { flex: 0 0 200px; position: relative; z-index: 2; }
.hcm-band .hcm-img img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; border: 4px solid var(--yellow); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.hcm-band .hcm-text { position: relative; z-index: 2; }
.hcm-band .hcm-text .eyebrow { display: inline-block; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--yellow); font-weight: 700; margin-bottom: 8px; }
.hcm-band .hcm-text h2 { font-size: 24px; color: #fff; text-transform: uppercase; line-height: 1.3; font-weight: 800; }
.hcm-band .hcm-text p { margin-top: 12px; color: #ffe9e9; font-size: 15px; max-width: 640px; }
.hcm-band .hcm-text .btn { margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--red-dark);
  font-weight: 700; padding: 11px 24px; border-radius: 30px; font-size: 14px;
  text-transform: uppercase; letter-spacing: .3px; transition: .25s; box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.btn:hover { background: #fff; color: var(--red); transform: translateY(-2px); }

/* ---------- Video + gallery ---------- */
.media-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
.video-main { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 16/9; }
.video-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-main:hover img { transform: scale(1.05); }
.video-main .play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.video-main .play span {
  width: 74px; height: 74px; border-radius: 50%; background: rgba(214,40,40,.95); color: #fff;
  display: grid; place-items: center; font-size: 26px; padding-left: 5px;
  box-shadow: 0 0 0 10px rgba(214,40,40,.3); transition: .3s; animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 10px rgba(214,40,40,.3);} 50% { box-shadow: 0 0 0 18px rgba(214,40,40,.12);} }
.video-main:hover .play span { transform: scale(1.1); }
.video-main .v-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.video-main .v-cap h3 { font-size: 17px; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery-grid a { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.1); }

/* ---------- Partner / units logos ---------- */
.units { background: #fff; padding: 30px 0; border-top: 1px solid var(--line); }
.units-track { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.unit-logo {
  width: 158px; height: 76px; background: #fafafb; border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center; color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: center; padding: 8px;
  transition: .25s;
}
.unit-logo:hover { border-color: var(--red); color: var(--red); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #320f0f, #240a0a); color: #e7d6d6; padding-top: 44px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--yellow), var(--red)); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.foot-col h4 { color: var(--yellow); font-size: 15px; text-transform: uppercase; margin-bottom: 18px; position: relative; padding-bottom: 10px; font-weight: 700; }
.foot-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--yellow); }
.foot-col p, .foot-col li { font-size: 14px; color: #d6bcbc; margin-bottom: 11px; line-height: 1.6; }
.foot-col ul li a { position: relative; padding-left: 14px; }
.foot-col ul li a::before { content: "â€º"; position: absolute; left: 0; color: var(--yellow); }
.foot-col a { color: #d6bcbc; }
.foot-col a:hover { color: var(--yellow); }
.foot-brand { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.foot-brand .emblem { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff0a6, var(--yellow) 55%, #f4b400); display: grid; place-items: center; }
.foot-brand .emblem svg { width: 40px; height: 40px; }
.foot-brand strong { color: #fff; font-size: 15px; text-transform: uppercase; line-height: 1.3; }
.foot-contact li { display: flex; gap: 10px; padding-left: 0 !important; }
.foot-contact li a::before { display: none; }
.foot-contact .ic { color: var(--yellow); flex: 0 0 18px; }
.foot-social { display: flex; gap: 10px; margin-top: 8px; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .25s; }
.foot-social a:hover { background: var(--yellow); color: var(--red-dark); transform: translateY(-3px); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px; color: #c9a9a9; text-align: center; }
.foot-bottom strong { color: #fff; }

/* back to top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; border: 0; font-size: 20px; cursor: pointer; z-index: 80;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* ---------- Inner page (article / list) ---------- */
.page-banner {
  background: linear-gradient(95deg, rgba(128,15,15,.96), rgba(214,40,40,.9)),
    url("https://picsum.photos/1600/220?grayscale&blur=2") center/cover;
  color: #fff; padding: 34px 0; position: relative;
}
.page-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--yellow), #ffb703, var(--yellow)); }
.page-banner h1 { font-size: 27px; text-transform: uppercase; font-weight: 800; }
.breadcrumb { font-size: 13px; color: #ffe9e9; margin-top: 8px; }
.breadcrumb a { color: #ffe9e9; }
.breadcrumb a:hover { color: var(--yellow); }

.article-body { background: #fff; border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.article-body h1 { font-size: 26px; line-height: 1.3; color: var(--ink); margin-bottom: 12px; font-weight: 800; }
.article-body .a-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.article-body .sapo { font-weight: 600; font-size: 16px; color: #333; margin-bottom: 16px; border-left: 4px solid var(--red); padding-left: 14px; }
.article-body p { margin-bottom: 16px; font-size: 15.5px; line-height: 1.8; }
.article-body img { border-radius: 10px; margin: 6px 0 8px; }
.article-body figcaption { text-align: center; font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 18px; }
.article-body h2 { font-size: 19px; color: var(--red); margin: 22px 0 12px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .main-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .stat:nth-child(3)::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar .slogan { display: none; }
  .header-tools .search-box { display: none; }
  .header-tools .header-date { display: none; }
  .site-header .container { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .menu {
    display: none; flex-direction: column; width: 100%;
    position: absolute; top: 100%; left: 0; background: var(--red-dark);
  }
  .navbar.open .menu { display: flex; }
  .menu > li > a { padding: 13px 16px; }
  .menu > li > a::after { display: none; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; border-radius: 0; background: rgba(0,0,0,.15); }
  .submenu li a { color: #ffe9e9; }
  .nav-inner { position: relative; flex-wrap: wrap; }
  .news-list { grid-template-columns: 1fr; }
  .tri { grid-template-columns: 1fr; }
  .hcm-band { flex-direction: column; text-align: center; padding: 26px; }
  .hcm-band .hcm-text p { margin-left: auto; margin-right: auto; }
  .hero-side { flex-direction: column; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat::before { display: none !important; }
  .foot-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .brand .brand-text h1 { font-size: 18px; }
}


/* =========================================================
   WordPress core / theme glue styles
   ========================================================= */

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link { left: -9999px; position: absolute; }

/* Search form on light background (404 / no results) */
.article-body .search-box,
.page-banner + .section .article-body .search-box {
  background: #fff; border: 1px solid var(--line);
}
.article-body .search-box input { color: var(--ink); }
.article-body .search-box input::placeholder { color: var(--muted); }

/* Pagination */
.dtn-pagination {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px;
}
.dtn-pagination .page-numbers {
  padding: 9px 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px;
  font-weight: 600; color: var(--ink); transition: .2s;
}
.dtn-pagination .page-numbers:hover,
.dtn-pagination .page-numbers.current {
  background: var(--red); color: #fff; border-color: var(--red);
}
.dtn-pagination .page-numbers.dots { background: transparent; border: 0; }

/* Widget do nguoi dung keo tha (.widget-default - khong co .w-body) */
.widget-default { padding-bottom: 8px; }
.widget-default .w-head { margin-bottom: 8px; }
.widget-default > *:not(.w-head) { padding-left: 18px; padding-right: 18px; }
.widget-default ul { margin: 0; }
.widget-default ul li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.widget-default ul li:last-child { border-bottom: 0; }
.widget-default ul li a { font-weight: 500; }
.widget-default ul ul { padding-left: 14px; margin-top: 8px; }
.widget-default select { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.widget-default p { font-size: 14px; color: var(--muted); }
.widget-default img { border-radius: 8px; }
.widget-default .w-head:not(:first-child) { margin-top: 4px; }

/* Widget tu lam trong sidebar.php (da co .w-body) */
.widget .w-body ul { margin: 0; }
.widget .w-body ul ul { padding-left: 14px; margin-top: 8px; }

/* Footer widgets dùng .foot-widget */
.foot-widget ul { margin: 0; }
.foot-widget ul li { font-size: 14px; margin-bottom: 11px; }
.foot-widget ul li a { position: relative; padding-left: 14px; }
.foot-widget ul li a::before { content: "\203A"; position: absolute; left: 0; color: var(--yellow); }
.foot-widget select { width: 100%; padding: 8px; border-radius: 6px; border: 0; }

/* WP content alignment */
.entry-content { font-size: 15.5px; line-height: 1.8; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2 { font-size: 20px; color: var(--red); margin: 22px 0 12px; font-weight: 700; }
.entry-content h3 { font-size: 17px; margin: 18px 0 10px; font-weight: 700; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 22px; }
.entry-content li { margin-bottom: 7px; }
.entry-content a { color: var(--red); font-weight: 500; text-decoration: underline; }
.entry-content img { border-radius: 10px; height: auto; }
.entry-content blockquote {
  border-left: 4px solid var(--red); background: #fff5f5; padding: 14px 18px;
  margin: 0 0 16px; border-radius: 0 8px 8px 0; font-style: italic; color: #444;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.entry-content th { background: #fff5f5; }
.alignleft { float: left; margin: 6px 20px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 20px; }
.aligncenter { display: block; margin: 6px auto 14px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { text-align: center; font-size: 13px; color: var(--muted); font-style: italic; margin-top: 6px; }
.sticky .feature-card, .sticky.news-item { outline: 2px solid var(--yellow); }
.page-links { margin: 16px 0; font-weight: 600; }
.page-links a { display: inline-block; padding: 4px 11px; background: var(--red); color: #fff; border-radius: 6px; margin: 0 4px; }

/* Comments */
.comments-area { margin-top: 4px; }
.comments-title { font-size: 19px; color: var(--red); margin-bottom: 16px; font-weight: 800; }
.comment-list { margin: 0 0 22px; }
.comment-list li { list-style: none; margin-bottom: 16px; }
.comment-list .children { margin-left: 30px; margin-top: 16px; }
.comment-body { background: #fafafb; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.comment-author { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.comment-respond { background: #fafafb; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.comment-reply-title { font-size: 17px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14px; margin-bottom: 12px;
}
.comment-form .form-submit input, .comment-form input[type=submit] {
  background: var(--red); color: #fff; border: 0; padding: 11px 26px; border-radius: 30px;
  font-weight: 700; text-transform: uppercase; cursor: pointer; font-size: 14px;
}
.comment-form .form-submit input:hover { background: var(--red-dark); }

/* Custom logo image */
.emblem.emblem-img { background: #fff; overflow: hidden; }
.emblem.emblem-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
