/*
Theme Name: Kinh Lời Vàng
Theme URI: https://www.kinhloivang.com/
Author: Kinh Lời Vàng
Description: Theme riêng cho Kinh Lời Vàng: tông kem - nâu trầm - vàng nghệ, bố cục khối kiểu landing, khung đọc thoáng, không jQuery, font tự host, video YouTube tải khi bấm.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: kinhloivang
*/

/* ==========================================================================
   1. Font tự host (Be Vietnam Pro cho chữ, Lora cho tiêu đề)
   ========================================================================== */
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/bvp-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("assets/fonts/bvp-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("assets/fonts/bvp-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("assets/fonts/bvp-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 400 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/lora-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Lora"; font-weight: 400 700; font-style: normal; font-display: swap;
  src: url("assets/fonts/lora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   2. Tokens
   ========================================================================== */
:root {
  --c-night: #22150d;      /* nền hero, khối tối */
  --c-night-2: #3a2416;
  --c-ink: #2f2016;        /* tiêu đề */
  --c-body: #4a3b30;       /* chữ thường */
  --c-muted: #76624f;
  --c-saffron: #95561a;    /* màu nhấn chính (tương phản AA trên nền kem) */
  --c-saffron-700: #7a4513;
  --c-gold: #c8962e;
  --c-gold-200: #ecd6a3;
  --c-cream: #fbf7f0;
  --c-cream-2: #f4ead9;
  --c-line: #eadfcf;
  --c-white: #fff;

  --f-head: "Lora", Georgia, "Times New Roman", serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(34, 21, 13, .06);
  --shadow: 0 14px 34px rgba(34, 21, 13, .10);
  --shadow-lg: 0 26px 60px rgba(34, 21, 13, .16);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ==========================================================================
   3. Nền tảng
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--c-cream); color: var(--c-body); font: 400 17px/1.75 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-saffron); text-underline-offset: 3px; }
a:hover { color: var(--c-saffron-700); }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--c-ink); line-height: 1.3; font-weight: 600; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.icon { flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--c-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   4. Nút, chip
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .78em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-saffron); color: #fff; box-shadow: 0 8px 20px rgba(149, 86, 26, .25); }
.btn--primary:hover { background: var(--c-saffron-700); color: #fff; }
.btn--gold { background: linear-gradient(135deg, #dcae4c, var(--c-gold) 55%, #a57a1c); color: #fff; box-shadow: 0 10px 24px rgba(165, 122, 28, .32); }
.btn--gold:hover { color: #fff; }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(236, 214, 163, .55); }
.btn--light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn--outline { color: var(--c-saffron); border-color: var(--c-saffron); background: transparent; }
.btn--outline:hover { background: var(--c-saffron); color: #fff; }
.btn--ghost { background: var(--c-cream-2); color: var(--c-saffron); }
.btn--sm { padding: .55em 1.05em; font-size: .88rem; }
.btn--lg { padding: .95em 1.7em; font-size: 1rem; }
.btn--block { width: 100%; }
.chip { display: inline-block; padding: .2em .8em; border-radius: 999px; background: var(--c-cream-2); color: var(--c-saffron); font-size: .78rem; font-weight: 600; text-decoration: none; letter-spacing: .02em; }
.chip:hover { background: var(--c-gold-200); }
.eyebrow { display: inline-block; margin-bottom: .7em; color: var(--c-saffron); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ==========================================================================
   5. Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 247, 240, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--c-line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); width: min(100% - 40px, 1440px); }
.brand, .site-header__actions { flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, var(--c-gold-200), var(--c-gold)); color: var(--c-night); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 1.3rem/1.1 var(--f-head); white-space: nowrap; }
.brand__tag { font-size: .74rem; color: var(--c-muted); letter-spacing: .04em; white-space: nowrap; }
.brand--light { color: #fff; }
.nav { margin-left: auto; min-width: 0; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 10px; border-radius: 999px; color: var(--c-ink); font-weight: 500; font-size: .92rem; white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-cat > a { background: var(--c-cream-2); color: var(--c-saffron); }
.nav__list .sub-menu { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--c-ink); cursor: pointer; }
.icon-btn:hover { background: var(--c-cream-2); color: var(--c-saffron); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.search-panel { border-top: 1px solid var(--c-line); padding: 14px 0; background: var(--c-cream); }

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 20%, #5a3a1f 0%, var(--c-night-2) 38%, var(--c-night) 75%); min-height: clamp(520px, 78vh, 700px); display: flex; align-items: center; }
.hero__glow { position: absolute; right: -8%; top: 50%; width: min(62vw, 720px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(236, 214, 163, .42) 0%, rgba(200, 150, 46, .16) 38%, transparent 68%); z-index: -1; }
.hero__lotus { position: absolute; right: 6%; top: 50%; transform: translateY(-46%); color: rgba(236, 214, 163, .55); z-index: -1; }
.hero__lotus .icon { width: clamp(260px, 34vw, 440px); height: auto; stroke-width: .6; }
.hero__inner { padding-block: 80px 120px; }
.hero__content { max-width: 680px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5em; padding: 6px 14px; margin-bottom: 22px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(236, 214, 163, .38); color: var(--c-gold-200); font-size: .88rem; }
.hero__title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.2rem); line-height: 1.08; letter-spacing: -.015em; margin-bottom: .4em; }
.hero__title span { display: block; margin-top: .25em; font-size: .48em; font-weight: 500; font-style: italic; color: var(--c-gold-200); letter-spacing: 0; }
.hero__lead { max-width: 580px; font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255, 255, 255, .86); margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; color: rgba(255, 255, 255, .85); font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45em; }
.hero__trust .icon { color: var(--c-gold); }

/* Dải chủ đề nổi đè lên hero */
.highlights { position: relative; z-index: 2; margin-top: -62px; }
.highlights__grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
.highlight { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 12px; text-decoration: none; color: var(--c-ink); transition: background .2s; }
.highlight + .highlight { border-left: 1px solid var(--c-line); }
.highlight:hover { background: var(--c-cream); }
.highlight__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--c-cream-2); color: var(--c-saffron); flex: none; }
.highlight strong { display: block; font: 600 1.02rem/1.3 var(--f-head); }
.highlight small { color: var(--c-muted); font-size: .84rem; }

/* ==========================================================================
   7. Khối (section) chung
   ========================================================================== */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 52px); }
.section-head--center { text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p:last-child { color: var(--c-muted); margin: 0; }
.section-head--light h2 { color: #fff; }
.section-head--light p:last-child { color: rgba(255, 255, 255, .72); }
.section-head--light .eyebrow { color: var(--c-gold-200); }
.section-cta { margin: 40px 0 0; text-align: center; }

/* Lời dạy */
.section--quote { padding-block: clamp(70px, 9vw, 110px) clamp(20px, 4vw, 40px); }
.quote-block { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.quote-block__mark { display: block; font: 700 6rem/0.6 var(--f-head); color: var(--c-gold); opacity: .55; }
.quote-block blockquote { margin: 0 0 18px; font: italic 500 clamp(1.3rem, 2.6vw, 1.85rem)/1.55 var(--f-head); color: var(--c-ink); }
.quote-block figcaption { color: var(--c-saffron); font-weight: 600; letter-spacing: .03em; }

/* Lưới thẻ bài viết */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); border: 1px solid var(--c-line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--c-gold); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.card__body .chip { align-self: flex-start; }
.card__title { margin: 0; font-size: 1.16rem; line-height: 1.4; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-saffron); }
.card__excerpt { margin: 0; color: var(--c-muted); font-size: .93rem; line-height: 1.65; }
.card__meta { display: flex; align-items: center; gap: 6px; margin: auto 0 0; padding-top: 6px; color: var(--c-muted); font-size: .82rem; }

/* Chủ đề */
.section--topics { background: #fff; border-block: 1px solid var(--c-line); }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; }
.topic { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius); background: var(--c-cream); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-body); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--c-gold-200); color: var(--c-body); }
.topic__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(145deg, var(--c-gold-200), #f6e7c4); color: var(--c-saffron); }
.topic h3 { font-size: 1.2rem; margin-bottom: .45em; }
.topic p { font-size: .92rem; color: var(--c-muted); margin-bottom: 18px; }
.topic__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--c-saffron); font-weight: 600; font-size: .9rem; }

/* Thần chú (nền tối) */
.section--dark { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 50% 0%, #4a2f1a 0%, var(--c-night) 70%); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.video { margin: 0; }
.video__btn, .video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .25s, transform .4s var(--ease); }
.video__btn:hover img { opacity: 1; transform: scale(1.03); }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.video__play .icon { width: 64px; height: 64px; padding: 10px; border-radius: 50%; background: rgba(200, 150, 46, .88); stroke-width: 1.4; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.video figcaption { margin-top: 12px; font: 600 1.02rem/1.4 var(--f-head); color: #fff; }
.section--dark .video figcaption { color: #fff; }
.sidebar .video figcaption { color: var(--c-ink); font-size: .95rem; }

/* Vật phẩm: chia đôi ảnh - chữ */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split__media { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* Kết nối */
.section--connect { padding-top: 0; }
.connect { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: calc(var(--radius) + 6px); color: #fff; background: radial-gradient(90% 120% at 100% 0%, #6b4523 0%, var(--c-night-2) 45%, var(--c-night) 100%); box-shadow: var(--shadow-lg); }
.connect h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.connect p { color: rgba(255, 255, 255, .8); margin: 0; }
.connect__actions { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   8. Trang bài viết, chuyên mục
   ========================================================================== */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(30px, 4vw, 48px); background: linear-gradient(180deg, var(--c-cream-2), var(--c-cream)); border-bottom: 1px solid var(--c-line); }
.page-hero__inner { max-width: 860px; }
.page-hero--center .page-hero__inner { text-align: center; margin-inline: auto; }
/* Bài viết: khối tiêu đề dùng cùng khung với lưới bài + thanh bên để mép trái thẳng hàng với cột bài */
.single .page-hero__inner { max-width: none; }
.single .page-hero__title { max-width: 880px; }
.page-hero__title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.22; margin: 10px 0 12px; }
.page-hero__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--c-muted); font-size: .9rem; margin: 0; }
.page-hero__desc { color: var(--c-muted); max-width: 640px; margin-inline: auto; }
.page-hero__search { max-width: 520px; margin: 18px auto 0; }
.breadcrumb { font-size: .85rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-saffron); }
.breadcrumb span { margin-inline: 4px; opacity: .6; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 90px); }
.article { min-width: 0; }
.article--page { max-width: 780px; margin: clamp(32px, 5vw, 56px) auto clamp(56px, 7vw, 90px); }
.entry-content { padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); box-shadow: var(--shadow-sm); font-size: 1.08rem; line-height: 1.85; color: var(--c-body); overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-cover { margin: 0 0 1.6em; }
.entry-cover img { width: 100%; border-radius: 12px; }
.klv-quote-card { margin: 2em 0; }
.klv-quote-card img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-sm); }
.entry-content h2 { font-size: 1.6rem; margin: 1.9em 0 .7em; }
.entry-content h3 { font-size: 1.32rem; margin: 1.6em 0 .6em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.25em; }
/* Căn đều 2 bên cho đoạn văn (dòng cuối vẫn căn trái). Giữ nguyên đoạn căn giữa/phải có chủ đích. */
.entry-content p, .entry-content li, .entry-content div { text-align: justify; text-align-last: left; }
.entry-content [style*="text-align: left"], .entry-content [style*="text-align:left"] { text-align: justify !important; }
.entry-content .tr-caption, .entry-content .separator, .entry-content figcaption { text-align: center; text-align-last: center; }
.entry-content img { border-radius: 10px; margin-inline: auto; }
.entry-content a img { display: inline-block; }
.entry-content blockquote { margin: 1.8em 0; padding: .4em 0 .4em 1.4em; border-left: 3px solid var(--c-gold); font-family: var(--f-head); font-style: italic; color: var(--c-ink); }
.entry-content table { max-width: 100%; border-collapse: collapse; }
.entry-content table.tr-caption-container { margin: 1.4em auto; }
.entry-content .tr-caption { font-size: .88rem; color: var(--c-muted); text-align: center; padding-top: 6px; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
/* Trung hoà định dạng nội tuyến chép từ Blogger để chữ đồng nhất (giữ nguyên nội dung) */
.entry-content [style*="font-family"] { font-family: inherit !important; }
.entry-content span[style*="font-size"], .entry-content p[style*="font-size"], .entry-content div[style*="font-size"] { font-size: inherit !important; }
.entry-content [style*="line-height"] { line-height: inherit !important; }
.entry-content [style*="background"] { background-color: transparent !important; }

.article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 0; }
.article__footer p { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.related { margin-top: 56px; }
.related h2 { font-size: 1.5rem; margin-bottom: 22px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid--3 .card__excerpt { display: none; }

/* Thanh bên */
.sidebar { display: flex; flex-direction: column; gap: 22px; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.side-box { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); }
.side-box__title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.side-box--image img { border-radius: 12px; margin-inline: auto; }
.side-box--accent { background: var(--c-cream-2); border-color: var(--c-gold-200); }
.side-box--accent p { font-size: .92rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { border-top: 1px dashed var(--c-line); }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--c-ink); text-decoration: none; font-size: .93rem; line-height: 1.45; }
.side-list a:hover { color: var(--c-saffron); }
.side-list span { color: var(--c-muted); font-size: .82rem; }
.sidebar .video { margin-bottom: 8px; }

/* Tìm kiếm */
.search-form { position: relative; display: flex; }
.search-form__input { width: 100%; padding: .8em 3.2em .8em 1.1em; border-radius: 999px; border: 1.5px solid var(--c-line); background: #fff; font: inherit; font-size: .95rem; color: var(--c-ink); }
.search-form__input:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 4px rgba(200, 150, 46, .15); }
.search-form__btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--c-saffron); color: #fff; cursor: pointer; }

/* Phân trang, trống, bình luận */
.pager { margin-top: 44px; }
.pager .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-ink); text-decoration: none; }
.pager .page-numbers.current, .pager a.page-numbers:hover { background: var(--c-saffron); border-color: var(--c-saffron); color: #fff; }
.empty { text-align: center; }
.empty .nav__list { justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.comments { margin-top: 56px; padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px dashed var(--c-line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--c-ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--c-muted); text-decoration: none; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea { width: 100%; padding: .75em 1em; border: 1.5px solid var(--c-line); border-radius: 12px; font: inherit; background: var(--c-cream); }
.comment-form .submit { display: inline-flex; padding: .8em 1.6em; border: 0; border-radius: 999px; background: var(--c-saffron); color: #fff; font: 600 .95rem var(--f-body); cursor: pointer; }

/* ==========================================================================
   9. Footer + thanh đáy di động
   ========================================================================== */
.site-footer { background: var(--c-night); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 80px); font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer__title { font: 600 1.05rem/1.3 var(--f-head); color: #fff; margin-bottom: 16px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li + li { margin-top: 8px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--c-gold-200); }
.site-footer__quote { margin: 18px 0; font: italic 400 .98rem/1.7 var(--f-head); color: rgba(255, 255, 255, .78); }
.site-footer__quote span { font: 600 .82rem var(--f-body); font-style: normal; color: var(--c-gold-200); }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(236, 214, 163, .35); color: var(--c-gold-200); }
.socials a:hover { background: var(--c-gold); color: var(--c-night); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; font-size: .84rem; color: rgba(255, 255, 255, .55); }
.mobile-bar { display: none; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
/* Dòng phụ dưới logo chỉ hiện khi header đủ chỗ (logo + 6 mục menu + 2 nút ~ 1.380px) */
@media (max-width: 1519px) {
  .brand__tag { display: none; }
}
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1340px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 12px 20px 24px; background: var(--c-cream); border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
  .admin-bar .nav { top: calc(var(--header-h) + 46px); }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: inline; }
  .nav__list { flex-direction: column; gap: 2px; }
  .nav__list a { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .hide-mobile { display: none; }
  .highlights__grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--c-line); }
  .card-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .connect { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero__lotus { opacity: .35; right: -10%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .btn { white-space: normal; text-align: center; }
  .brand__tag { display: none; }
  .brand__name { font-size: 1.15rem; }
  .brand__mark { width: 38px; height: 38px; }
  .hero { min-height: 0; }
  .hero__inner { padding-block: 56px 100px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .highlights { margin-top: -48px; }
  .highlight { padding: 14px 10px; gap: 10px; }
  .highlight__icon { width: 42px; height: 42px; }
  .highlight strong { font-size: .92rem; }
  .card-grid, .video-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .entry-content { padding: 22px 18px; font-size: 1.04rem; border-radius: 14px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.2fr 1fr; background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -8px 24px rgba(34, 21, 13, .08); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; color: var(--c-ink); font-size: .74rem; font-weight: 600; text-decoration: none; }
  .mobile-bar__main { background: var(--c-saffron); color: #fff !important; }
}
