/*
Theme Name: KarateDo Việt Nam
Theme URI: https://karatedo.com.vn
Author: Claude (Anthropic)
Author URI: https://karatedo.com.vn
Description: Theme WordPress cho cộng đồng Karate-Do Việt Nam — hiện đại, võ thuật, responsive. Tông màu Đen / Đỏ / Vàng kim. Hỗ trợ menu, logo tùy chỉnh, Customizer, tin tức động.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karatedo
Tags: martial-arts, sports, education, custom-menu, custom-logo, featured-images, translation-ready, responsive
*/

/* ============================================================
   KarateDo Việt Nam — Theme Stylesheet
   Palette: Đen (sumi), Đỏ (hinomaru), Vàng kim (đai), Trắng (gi)
   ============================================================ */

:root {
  --black: #0d0d0f;
  --black-soft: #16161a;
  --black-card: #1c1c22;
  --red: #d7262f;
  --red-deep: #a51720;
  --gold: #e9b949;
  --gold-soft: #f4d27a;
  --white: #f7f6f3;
  --gray: #9a9aa3;
  --gray-line: #2a2a31;
  --radius: 14px;
  --maxw: 1200px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --font-display: "Oswald", "Be Vietnam Pro", sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--black-soft); }

/* ---------- Section heading ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  margin-bottom: 14px;
}
.sec-head .kicker::before,
.sec-head .kicker::after { content: ""; width: 26px; height: 2px; background: var(--red); }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1; text-transform: uppercase; letter-spacing: .5px;
}
.sec-head h2 span { color: var(--red); }
.sec-head p { color: var(--gray); margin-top: 16px; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px;
  padding: 14px 30px; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: all .3s ease;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 12px 28px -10px var(--red); }
.btn--ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: #000; font-size: 13px; color: var(--gray);
  border-bottom: 1px solid var(--gray-line);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar a:hover { color: var(--gold); }
.topbar .tb-info { display: flex; gap: 22px; }
.topbar .tb-info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .tb-social { display: flex; gap: 14px; }
.topbar .tb-social a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--black-card); color: var(--gray); }
.topbar .tb-social a:hover { background: var(--red); color: #fff; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-line);
  transition: background .3s ease;
}
.header.scrolled { background: rgba(13,13,15,.97); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { max-height: 50px; width: auto; }
.brand .belt {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.brand .belt svg { width: 26px; height: 26px; }
.brand .brand-text strong { font-family: var(--font-display); font-size: 20px; letter-spacing: 1px; text-transform: uppercase; display: block; line-height: 1; }
.brand .brand-text span { font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu li { position: relative; }
.menu > li > a {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: .8px; font-size: 14px;
  padding: 10px 14px; border-radius: 6px; display: block;
  color: var(--white);
}
.menu > li > a:hover,
.menu > li.current-menu-item > a,
.menu > li.current_page_item > a { color: var(--gold); }
.menu .sub-menu,
.menu .children {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: var(--black-card); border: 1px solid var(--gray-line);
  border-radius: 10px; padding: 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease; z-index: 10;
}
.menu li:hover > .sub-menu,
.menu li:hover > .children { opacity: 1; visibility: visible; transform: translateY(0); }
.menu .sub-menu a,
.menu .children a { padding: 9px 14px; border-radius: 7px; font-size: 14px; display: block; color: var(--gray); white-space: nowrap; }
.menu .sub-menu a:hover,
.menu .children a:hover { background: var(--red); color: #fff; }
.menu .menu-item-has-children > a::after,
.menu .page_item_has_children > a::after { content: "▾"; font-size: 10px; margin-left: 5px; color: var(--gray); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; }
.burger span { width: 26px; height: 2px; background: var(--white); transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background:
    radial-gradient(circle at 75% 30%, rgba(215,38,47,.22), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(233,185,73,.10), transparent 40%),
    var(--black);
  overflow: hidden;
}
.hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,13,15,.92), rgba(13,13,15,.55)); z-index: 1; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.hero .kanji {
  position: absolute; right: -3%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(220px, 40vw, 560px); color: rgba(255,255,255,.03);
  line-height: .8; pointer-events: none; user-select: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(215,38,47,.12); border: 1px solid rgba(215,38,47,.4);
  color: var(--gold); padding: 8px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6.5vw, 78px); line-height: 1.02;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero h1 span { color: var(--red); display: block; }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { color: var(--gray); font-size: 18px; max-width: 540px; margin: 22px 0 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-card {
  background: linear-gradient(160deg, var(--black-card), var(--black-soft));
  border: 1px solid var(--gray-line); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow); position: relative;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 34px; right: 34px; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 3px;
}
.hero-card h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.hero-card .muted { color: var(--gray); font-size: 14px; margin-bottom: 22px; }
.hero-form label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray); display: block; margin-bottom: 6px; }
.hero-form input, .hero-form select {
  width: 100%; padding: 13px 15px; margin-bottom: 16px;
  background: var(--black); border: 1px solid var(--gray-line);
  border-radius: 9px; color: var(--white); font-family: inherit; font-size: 14px;
}
.hero-form input:focus, .hero-form select:focus { outline: none; border-color: var(--red); }
.hero-form .btn { width: 100%; justify-content: center; }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: linear-gradient(90deg, var(--red-deep), var(--red)); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 46px; padding-bottom: 46px; }
.stat { text-align: center; color: #fff; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 12%; height: 76%; width: 1px; background: rgba(255,255,255,.25); }
.stat .num { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1; }
.stat .num small { font-size: .55em; }
.stat .lbl { text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; margin-top: 8px; opacity: .9; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-visual .frame {
  aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #232329, #0e0e11);
  border: 1px solid var(--gray-line); display: grid; place-items: center;
}
.about-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.about-visual .frame svg { width: 70%; opacity: .9; }
.about-visual .badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--gold); color: var(--black); border-radius: 16px;
  padding: 20px 26px; box-shadow: var(--shadow);
}
.about-visual .badge .big { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1; }
.about-visual .badge .small { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.about-content .kicker { color: var(--gold); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; }
.about-content h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); text-transform: uppercase; line-height: 1.1; margin: 12px 0 18px; }
.about-content h2 span { color: var(--red); }
.about-content p { color: var(--gray); margin-bottom: 16px; }
.about-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 30px; }
.about-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.about-list .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: rgba(215,38,47,.15); color: var(--red); display: grid; place-items: center; font-size: 12px; margin-top: 3px; }

/* ============================================================
   STYLES (Hệ phái)
   ============================================================ */
.styles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.style-card {
  background: var(--black-card); border: 1px solid var(--gray-line);
  border-radius: var(--radius); padding: 30px; transition: all .3s ease; position: relative; overflow: hidden;
}
.style-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .3s ease; }
.style-card:hover { transform: translateY(-6px); border-color: rgba(215,38,47,.5); box-shadow: var(--shadow); }
.style-card:hover::before { transform: scaleY(1); }
.style-card .icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, rgba(215,38,47,.18), rgba(233,185,73,.12)); display: grid; place-items: center; margin-bottom: 18px; }
.style-card .icon svg { width: 30px; height: 30px; stroke: var(--gold); }
.style-card h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; font-size: 20px; margin-bottom: 6px; }
.style-card .jp { color: var(--red); font-size: 13px; letter-spacing: 2px; margin-bottom: 12px; }
.style-card p { color: var(--gray); font-size: 14.5px; }

/* ============================================================
   CURRICULUM (Học Karate)
   ============================================================ */
.curric { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.curric-step {
  text-align: center; background: var(--black-soft); border: 1px solid var(--gray-line);
  border-radius: var(--radius); padding: 30px 18px; position: relative; transition: all .3s ease;
}
.curric-step:hover { background: var(--black-card); transform: translateY(-5px); }
.curric-step .step-no { font-family: var(--font-display); font-size: 14px; color: var(--gold); letter-spacing: 2px; }
.curric-step .ring { width: 72px; height: 72px; margin: 14px auto; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; }
.curric-step .ring svg { width: 34px; height: 34px; stroke: var(--white); }
.curric-step h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 17px; margin-bottom: 6px; }
.curric-step p { color: var(--gray); font-size: 13px; }

/* ============================================================
   BELTS (Hệ thống màu đai)
   ============================================================ */
.belts-wrap { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: 20px; padding: 44px; }
.belts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.belt-item { text-align: center; flex: 1 1 90px; min-width: 90px; }
.belt-bar { height: 52px; border-radius: 8px; box-shadow: inset 0 -8px 14px -8px rgba(0,0,0,.6), 0 6px 16px -10px rgba(0,0,0,.8); position: relative; transition: transform .25s ease; }
.belt-bar::after { content: ""; position: absolute; right: 14px; top: 0; bottom: 0; width: 8px; background: rgba(0,0,0,.25); }
.belt-item:hover .belt-bar { transform: translateY(-5px) scale(1.04); }
.belt-item .belt-name { font-size: 12.5px; margin-top: 10px; color: var(--gray); font-weight: 600; }
.belt-item .kyu { font-size: 11px; color: var(--gold); font-family: var(--font-display); letter-spacing: 1px; }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16/10; position: relative; display: grid; place-items: center; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb svg { width: 60px; height: 60px; opacity: .35; }
.news-thumb .cat { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: 50px; z-index: 2; }
.news-body { padding: 22px 24px 26px; }
.news-body .date { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }
.news-body h3 { font-size: 18px; line-height: 1.35; margin: 10px 0 12px; font-weight: 600; }
.news-card:hover h3 { color: var(--gold); }
.news-body p { color: var(--gray); font-size: 14px; }
.news-body .more { margin-top: 16px; color: var(--red); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

.tn-bg-1 { background: linear-gradient(135deg, #2a1416, #0e0e11); }
.tn-bg-2 { background: linear-gradient(135deg, #2a2410, #0e0e11); }
.tn-bg-3 { background: linear-gradient(135deg, #14202a, #0e0e11); }

/* ============================================================
   CLUBS (Võ đường)
   ============================================================ */
.clubs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.club-card { background: var(--black-soft); border: 1px solid var(--gray-line); border-radius: 12px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: all .3s ease; }
.club-card:hover { border-color: var(--red); background: var(--black-card); }
.club-card .pin { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: rgba(215,38,47,.15); display: grid; place-items: center; }
.club-card .pin svg { width: 20px; height: 20px; stroke: var(--red); }
.club-card h4 { font-size: 16px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; }
.club-card p { color: var(--gray); font-size: 13px; }

/* ============================================================
   CTA Tuyển sinh
   ============================================================ */
.cta {
  background:
    radial-gradient(circle at 80% 20%, rgba(215,38,47,.3), transparent 50%),
    linear-gradient(135deg, var(--black-soft), var(--black));
  border-top: 1px solid var(--gray-line); border-bottom: 1px solid var(--gray-line);
  text-align: center;
}
.cta h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 52px); text-transform: uppercase; line-height: 1.05; }
.cta h2 span { color: var(--gold); }
.cta p { color: var(--gray); max-width: 600px; margin: 18px auto 32px; font-size: 17px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE / POST CONTENT (blog, single, page)
   ============================================================ */
.page-hero { padding: 60px 0 50px; background: var(--black-soft); border-bottom: 1px solid var(--gray-line); text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 50px); text-transform: uppercase; letter-spacing: .5px; }
.page-hero .crumbs { color: var(--gray); font-size: 14px; margin-top: 12px; }
.page-hero .crumbs a:hover { color: var(--gold); }

.content-area { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.content-area.full { grid-template-columns: 1fr; max-width: 820px; margin: 0 auto; }

.post-card { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; transition: all .3s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 24px 26px 28px; }
.post-card .meta { font-size: 12.5px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.post-card h2 { font-size: 22px; line-height: 1.3; margin-bottom: 12px; }
.post-card h2 a:hover { color: var(--gold); }
.post-card p { color: var(--gray); font-size: 15px; }

.entry { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 40px; }
.entry .entry-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.entry h1.entry-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin-bottom: 14px; }
.entry .entry-meta { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 28px; }
.entry .entry-content { color: #d4d4db; font-size: 16px; }
.entry .entry-content > * { margin-bottom: 18px; }
.entry .entry-content h2, .entry .entry-content h3 { font-family: var(--font-display); color: var(--white); margin-top: 14px; }
.entry .entry-content a { color: var(--gold); text-decoration: underline; }
.entry .entry-content img { border-radius: 10px; }
.entry .entry-content blockquote { border-left: 4px solid var(--red); padding: 8px 20px; background: var(--black-soft); border-radius: 8px; color: var(--gray); }
.entry .entry-content ul, .entry .entry-content ol { padding-left: 22px; }
.entry .entry-content ul { list-style: disc; }
.entry .entry-content ol { list-style: decimal; }

.sidebar .widget { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.sidebar .widget-title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 17px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-line); }
.sidebar ul li { padding: 8px 0; border-bottom: 1px dashed var(--gray-line); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar a { color: var(--gray); font-size: 14px; }
.sidebar a:hover { color: var(--gold); }
.sidebar select, .sidebar input { width: 100%; padding: 10px 12px; background: var(--black); border: 1px solid var(--gray-line); border-radius: 8px; color: var(--white); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--gray-line); border-radius: 9px; color: var(--white); font-family: var(--font-display); }
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--red); border-color: var(--red); color: #fff; }

.comments-area { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 34px; margin-top: 30px; }
.comments-area h3 { font-family: var(--font-display); text-transform: uppercase; margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-list li { border-bottom: 1px solid var(--gray-line); padding: 16px 0; }
.comment-respond input, .comment-respond textarea { width: 100%; padding: 12px 14px; margin-bottom: 14px; background: var(--black); border: 1px solid var(--gray-line); border-radius: 8px; color: var(--white); font-family: inherit; }
.comment-respond .submit { background: var(--red); color: #fff; border: 0; padding: 13px 28px; border-radius: 8px; cursor: pointer; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================
   SINGLE POST (chi tiết bài viết)
   ============================================================ */
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap-mid { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

.single-hero { padding: 48px 0 8px; text-align: center; }
.single-hero .crumbs { color: var(--gray); font-size: 13px; margin-bottom: 18px; }
.single-hero .crumbs a:hover { color: var(--gold); }
.single-hero .cat-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 6px 15px; border-radius: 50px; margin-bottom: 20px; }
.single-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; letter-spacing: .3px; }

.single-meta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; color: var(--gray); font-size: 14px; }
.single-meta .author { display: flex; align-items: center; gap: 10px; }
.single-meta .avatar { width: 34px; height: 34px; border-radius: 50%; }
.single-meta strong { color: var(--white); font-weight: 600; }
.single-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

.single-feat { margin: 34px auto 0; max-width: 1000px; padding: 0 24px; }
.single-feat img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); }

.single-body { padding-top: 40px; }
.single-body .entry-content { color: #d6d6dd; font-size: 17.5px; line-height: 1.85; }
.single-body .entry-content > * { margin-bottom: 20px; }
.single-body .entry-content > p:first-of-type { font-size: 19px; line-height: 1.7; color: #ebebef; }
.single-body .entry-content h2 { font-family: var(--font-display); font-size: 26px; color: #fff; margin: 36px 0 14px; }
.single-body .entry-content h3 { font-family: var(--font-display); font-size: 21px; color: #fff; margin: 28px 0 12px; }
.single-body .entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.single-body .entry-content img { border-radius: 12px; height: auto; }
.single-body .entry-content figure { margin: 28px 0; }
.single-body .entry-content figcaption { color: var(--gray); font-size: 13px; text-align: center; margin-top: 8px; }
.single-body .entry-content ul, .single-body .entry-content ol { padding-left: 24px; }
.single-body .entry-content ul { list-style: disc; }
.single-body .entry-content ol { list-style: decimal; }
.single-body .entry-content li { margin-bottom: 8px; }
.single-body .entry-content blockquote { border-left: 4px solid var(--red); padding: 14px 22px; background: var(--black-soft); border-radius: 0 10px 10px 0; color: #c7c7cf; font-style: italic; }
.single-body .entry-content blockquote p:last-child { margin-bottom: 0; }
.single-body .entry-content code { background: var(--black-card); padding: 2px 7px; border-radius: 5px; font-size: .9em; }

.single-tags { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.single-tags a { font-size: 13px; color: var(--gray); border: 1px solid var(--gray-line); padding: 5px 13px; border-radius: 50px; }
.single-tags a:hover { border-color: var(--red); color: #fff; }

.share-row { display: flex; align-items: center; gap: 10px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--gray-line); }
.share-row .lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; color: var(--gray); margin-right: 4px; }
.share-row a, .share-row button { width: 40px; height: 40px; border-radius: 10px; background: var(--black-card); border: 1px solid var(--gray-line); color: var(--gray); display: grid; place-items: center; cursor: pointer; transition: all .25s ease; }
.share-row a:hover, .share-row button:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-2px); }
.share-row svg { width: 17px; height: 17px; }
.share-row .kd-copy.copied { background: var(--gold); color: #000; border-color: var(--gold); }

.author-box { display: flex; gap: 18px; background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 26px; margin-top: 40px; align-items: flex-start; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px; }
.author-box h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.author-box p { color: var(--gray); font-size: 14px; margin: 0; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.post-nav a { display: block; background: var(--black-soft); border: 1px solid var(--gray-line); border-radius: 12px; padding: 18px 20px; transition: all .25s ease; }
.post-nav a:hover { border-color: var(--red); background: var(--black-card); }
.post-nav span { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.post-nav strong { display: block; margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--white); line-height: 1.4; }
.post-nav .nav-next { text-align: right; }

.related { margin-top: 60px; }
.related h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 22px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--gray-line); }
.related .archive-grid { grid-template-columns: repeat(3, 1fr); }

.single-comments { margin-top: 50px; }

@media (max-width: 760px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
  .related .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .single-body .entry-content { font-size: 16.5px; }
}
@media (max-width: 420px) {
  .related .archive-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #060607; padding-top: 72px; border-top: 1px solid var(--gray-line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--red); }
.footer .f-about p { color: var(--gray); font-size: 14px; margin: 16px 0; }
.footer .f-links a { color: var(--gray); display: block; padding: 6px 0; font-size: 14px; }
.footer .f-links a:hover { color: var(--gold); padding-left: 6px; }
.footer .f-links ul li { display: block; }
.footer .f-contact li { color: var(--gray); font-size: 14px; display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start; }
.footer .f-contact svg { flex: 0 0 18px; width: 18px; height: 18px; stroke: var(--red); margin-top: 3px; }
.footer .f-social { display: flex; gap: 12px; margin-top: 16px; }
.footer .f-social a { width: 38px; height: 38px; border-radius: 10px; background: var(--black-card); display: grid; place-items: center; color: var(--gray); }
.footer .f-social a:hover { background: var(--red); color: #fff; }
.footer-bottom { border-top: 1px solid var(--gray-line); margin-top: 56px; padding: 24px 0; text-align: center; color: var(--gray); font-size: 13px; }
.footer-bottom span { color: var(--gold); }

/* ============================================================
   ARCHIVE / CATEGORY (trang danh mục bài viết)
   ============================================================ */
.archive-head { padding: 44px 0 32px; }
.archive-head .count { display: inline-block; margin-top: 14px; color: var(--gold); font-family: var(--font-display); letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase; }
.archive-head .arch-desc { color: var(--gray); max-width: 680px; margin: 12px auto 0; font-size: 15px; }

/* Thanh lọc chuyên mục */
.cat-nav-wrap { background: var(--black-soft); border-bottom: 1px solid var(--gray-line); position: sticky; top: 76px; z-index: 50; }
.cat-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 12px 0; }
.cat-nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .6px; font-size: 13px; color: var(--gray); padding: 7px 16px; border: 1px solid var(--gray-line); border-radius: 50px; transition: all .25s ease; white-space: nowrap; }
.cat-nav a:hover { color: #fff; border-color: var(--red); transform: translateY(-2px); }
.cat-nav a.active { background: var(--red); border-color: var(--red); color: #fff; }
.cat-nav a .c-count { opacity: .65; font-size: 11px; margin-left: 4px; }

/* Vùng danh sách — đệm gọn để thấy nhiều bài hơn */
.archive-list { padding: 38px 0 80px; }

/* Lưới bài viết — 4 cột, card tinh gọn */
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.archive-grid .news-thumb { aspect-ratio: 16/10; }
.archive-grid .news-thumb .cat { font-size: 10px; padding: 4px 10px; top: 10px; left: 10px; }
.archive-grid .news-body { padding: 14px 15px 16px; }
.archive-grid .news-body .date { font-size: 11px; letter-spacing: .5px; }
.archive-grid .news-body h3 {
  font-size: 15px; line-height: 1.35; margin: 7px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.archive-grid .news-body p,
.archive-grid .news-body .more { display: none; }

/* Bài nổi bật đầu trang */
.feat-post { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; transition: all .3s ease; }
.feat-post:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: rgba(215,38,47,.4); }
.feat-post .feat-thumb { position: relative; min-height: 320px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2a1416, #0e0e11); }
.feat-post .feat-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feat-post .feat-thumb svg { width: 70px; height: 70px; opacity: .35; }
.feat-post .feat-thumb .cat { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; padding: 6px 14px; border-radius: 50px; }
.feat-post .feat-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.feat-post .feat-body .badge-feat { color: var(--gold); font-family: var(--font-display); letter-spacing: 2px; text-transform: uppercase; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.feat-post .feat-body .badge-feat::before { content: "★"; }
.feat-post .feat-body h2 { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); line-height: 1.2; margin: 12px 0 14px; }
.feat-post .feat-body h2 a:hover { color: var(--gold); }
.feat-post .feat-body p { color: var(--gray); }
.feat-post .feat-body .meta { color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.feat-post .feat-body .more { margin-top: 20px; color: var(--red); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.archive-empty { background: var(--black-card); border: 1px solid var(--gray-line); border-radius: var(--radius); padding: 48px; text-align: center; }
.archive-empty h2 { font-family: var(--font-display); text-transform: uppercase; margin-bottom: 12px; }
.archive-empty p { color: var(--gray); margin-bottom: 22px; }

@media (max-width: 1100px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-post { grid-template-columns: 1fr; }
  .feat-post .feat-thumb { min-height: 240px; }
  .cat-nav-wrap { position: static; }
}
@media (max-width: 760px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feat-post .feat-body { padding: 26px; }
}
@media (max-width: 420px) {
  .archive-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WP CORE / ACCESSIBILITY
   ============================================================ */
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin: 0 auto 16px; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--gray); font-size: 13px; text-align: center; margin-top: 8px; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--gold); color: #000; padding: 10px 16px; border-radius: 8px; z-index: 999; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .styles-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .curric { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .content-area { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .menu, .topbar .tb-info span.hide-sm { display: none; }
  .burger { display: flex; }
  .menu.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--black-card); padding: 16px; border-bottom: 1px solid var(--gray-line); gap: 0; align-items: stretch; }
  .menu.open > li { width: 100%; }
  .menu.open .sub-menu, .menu.open .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding-left: 14px; }
  .stats .container, .styles-grid, .news-grid, .curric { grid-template-columns: 1fr; }
  .stat:not(:last-child)::after { display: none; }
  .stats .container { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-visual .badge { left: 0; }
  .entry { padding: 24px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
