/* ============================================================
   DauTuCaNhan — Ghost Theme CSS
   Navy #0D2137 + Gold #C9A84C
   ============================================================ */

/* ---------- Ghost font variables (required by gscan) ---------- */
:root {
  --gh-font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --gh-font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Tokens ---------- */
:root {
  --navy:         #0D2137;
  --navy-light:   #163354;
  --navy-pale:    #EDF2F7;
  --gold:         #C9A84C;
  --gold-light:   #E8C97A;
  --gold-pale:    #FBF6E9;
  --text-primary: #1A202C;
  --text-sec:     #4A5568;
  --text-muted:   #718096;
  --border:       #E2E8F0;
  --white:        #FFFFFF;
  --green:        #276749;
  --r-sm: 4px;  --r: 8px;  --r-lg: 12px;  --r-xl: 16px;
  --sh-sm: 0 1px 3px rgba(13,33,55,.08);
  --sh:    0 4px 16px rgba(13,33,55,.12);
  --sh-lg: 0 8px 32px rgba(13,33,55,.18);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --max-w: 1200px;
  --content-w: 740px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text-primary); background: #fff; line-height: 1.7; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: underline; text-decoration-color: transparent; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--gold); text-decoration-color: var(--gold); }
button { font-family: inherit; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 1.5em 0 .5em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1.2em; }

/* ---------- Buttons ---------- */
.gh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.4rem; border-radius: var(--r); font-weight: 600; font-size: .9rem;
  cursor: pointer; border: 2px solid transparent; text-decoration: none; transition: all .2s;
  white-space: nowrap;
}
.gh-btn-primary  { background: var(--gold); color: var(--navy); }
.gh-btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.gh-btn-gold     { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.gh-btn-gold:hover    { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.gh-btn-outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.gh-btn-outline:hover { background: var(--navy); color: #fff; }
.gh-btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.gh-btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }
.gh-btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 99px; }

/* ---------- Progress bar ---------- */
#dtc-progress {
  position: fixed; top: 0; left: 0; height: 3px; background: var(--gold);
  z-index: 2000; width: 0; transition: width .1s linear; pointer-events: none;
}

/* ---------- Header ---------- */
.gh-head {
  background: var(--navy); border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 1000; box-shadow: var(--sh);
}
.gh-head-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; height: 64px; gap: 1rem;
}

/* Logo */
.gh-head-logo { text-decoration: none; flex-shrink: 0; }
.gh-head-logo img { height: 40px; width: auto; }
.logo-text {
  font-size: 1.25rem; font-weight: 800; color: #fff; letter-spacing: -.3px;
  white-space: nowrap; /* prevent logo text from wrapping */
}
.logo-text em { color: var(--gold); font-style: normal; }

/* Nav */
.gh-head-menu { flex: 1; display: flex; justify-content: center; min-width: 0; }
.gh-head-menu .nav,
.gh-head-menu ul { display: flex; align-items: center; list-style: none; gap: 0; flex-wrap: nowrap; }
.gh-head-menu .nav li { position: relative; }
.gh-head-menu .nav a {
  display: block; padding: .45rem .9rem; color: rgba(255,255,255,.85);
  text-decoration: none; font-size: .875rem; font-weight: 500; white-space: nowrap;
  border-radius: var(--r-sm); transition: color .2s, background .2s;
}
.gh-head-menu .nav a:hover { color: var(--gold); background: rgba(201,168,76,.1); }
/* Active / current nav item */
.gh-head-menu .nav li.nav-current > a {
  color: var(--gold);
  background: rgba(201,168,76,.12);
  font-weight: 600;
}
.gh-head-menu .nav li.nav-current > a::after {
  content: "";
  position: absolute; bottom: 0; left: .9rem; right: .9rem;
  height: 2px; background: var(--gold); border-radius: 2px;
}
/* Hide Giới Thiệu nav item */
.nav-gioi-thieu { display: none !important; }

/* Actions */
.gh-head-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.gh-head-actions .gh-btn { font-size: .825rem; padding: .45rem 1rem; }

/* Burger */
.gh-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
  width: 40px; height: 40px; flex-shrink: 0;
}
.gh-burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
body.gh-head-open .gh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.gh-head-open .gh-burger span:nth-child(2) { opacity: 0; }
body.gh-head-open .gh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 768px) {
  .gh-burger { display: flex; margin-left: auto; }
  .gh-head-actions { display: none; }
  .gh-head-menu {
    display: none; position: absolute; top: 67px; left: 0; right: 0;
    background: var(--navy); padding: 1rem 1.5rem 1.5rem; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.1); box-shadow: var(--sh-lg);
  }
  .gh-head-menu .nav, .gh-head-menu ul { flex-direction: column; align-items: stretch; width: 100%; }
  .gh-head-menu .nav a { padding: .75rem .5rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  body.gh-head-open .gh-head-menu { display: flex; }
}

/* ---------- Site content ---------- */
.site-content { min-height: 60vh; }

/* ---------- Hero ---------- */
.dtc-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #1a4b7c 100%);
  color: #fff;
}
.dtc-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .12; filter: grayscale(30%);
}
.dtc-hero-inner { position: relative; max-width: var(--max-w); margin: 0 auto; padding: 5rem 1.5rem 4.5rem; }
.dtc-hero-content { max-width: 680px; }
.dtc-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-top: 0; line-height: 1.2; }
.dtc-hero h1 em { color: var(--gold); font-style: normal; }
.dtc-hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin: 1rem 0 2rem; max-width: 540px; }
.dtc-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Category pills ---------- */
.dtc-categories {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  padding: 1.5rem 1.5rem; background: var(--navy-pale); border-bottom: 1px solid var(--border);
}
.dtc-cat-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1.1rem;
  border-radius: 99px; font-size: .875rem; font-weight: 600;
  border: 2px solid transparent; text-decoration: none; transition: all .2s;
}
.dtc-cat-pill--navy   { background: var(--navy); color: #fff; }
.dtc-cat-pill--navy:hover  { background: var(--navy-light); border-color: var(--gold); color: #fff; }
.dtc-cat-pill--gold   { background: var(--gold-pale); color: var(--navy); border-color: var(--gold); }
.dtc-cat-pill--gold:hover  { background: var(--gold); color: var(--navy); }
.dtc-cat-pill--outline { background: #fff; color: var(--text-sec); border-color: var(--border); }
.dtc-cat-pill--outline:hover { border-color: var(--navy); color: var(--navy); }
.dtc-cat-pill--tool   { background: var(--navy-pale); color: var(--navy); border-color: var(--navy); }
.dtc-cat-pill--tool:hover { background: var(--navy); color: #fff; }

/* ---------- Section layout ---------- */
.dtc-section { padding: 3rem 0; }
.dtc-section--bg { background: var(--navy-pale); }
.dtc-section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.dtc-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.dtc-section-title {
  font-size: 1.3rem; font-weight: 800; color: var(--navy); margin: 0;
  display: flex; align-items: center; gap: .5rem;
}
.dtc-section-title span { font-size: 1.1rem; }

/* ---------- Post feed grid ---------- */
.post-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
@media (min-width: 1024px) { .post-feed { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .post-feed { grid-template-columns: 1fr; } }

/* ---------- Post card ---------- */
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.post-card--featured { border-color: var(--gold); border-width: 2px; }

.post-card-image-link { display: block; overflow: hidden; position: relative; padding-top: 56.25%; /* 16:9 fallback */ aspect-ratio: 16/9; }
@supports (aspect-ratio: 16/9) { .post-card-image-link { padding-top: 0; } }
.post-card-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image { transform: scale(1.04); }

.post-card-content { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card-tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--gold); text-decoration: none; margin-bottom: .5rem; display: block;
}
.post-card-tag:hover { color: var(--navy); }
.post-card-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0 0 .65rem; line-height: 1.4; }
.post-card-title a { text-decoration: none; color: inherit; }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt {
  font-size: .875rem; color: var(--text-sec); flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.post-card-footer {
  display: flex; align-items: center; gap: .5rem; padding-top: .85rem;
  border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-muted);
  flex-wrap: wrap;
}
.post-card-author-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.post-card-author     { font-weight: 600; color: var(--text-sec); }
.post-card-date       { margin-left: auto; }
.post-card-read-time  { color: var(--text-muted); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 640px; margin: 0 auto; padding: 2.5rem 0;
}
.pagination .page-number {
  font-size: .9rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; text-align: center;
}
.pagination a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.2rem; border-radius: var(--r); border: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; text-decoration: none; color: var(--text-primary);
  white-space: nowrap; transition: all .2s;
}
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
/* spacers keep the page-number centered when only one of prev/next exists */
.pagination .pg-spacer { width: 120px; }
@media (max-width: 480px) {
  .pagination a { padding: .5rem .8rem; font-size: .8rem; }
  .pagination .pg-spacer { width: 80px; }
}

/* ---------- Series navigation box (5S) ---------- */
.series-box { max-width: var(--content-w); margin: 2rem auto 0; padding: 0 1.5rem; }
.series-box-inner {
  background: var(--navy); color: #fff; border-radius: var(--r-lg);
  border-left: 4px solid var(--gold); padding: 1.5rem 1.6rem; box-shadow: var(--sh);
}
.series-badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .5px;
  color: var(--gold); background: rgba(201,168,76,.14); padding: .25rem .6rem; border-radius: 99px;
}
.series-box-head h3 { color: #fff; font-size: 1.15rem; margin: .6rem 0 .3rem; }
.series-box-head p { color: rgba(255,255,255,.72); font-size: .9rem; margin: 0 0 1rem; }
.series-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: .4rem; }
.series-list li { counter-increment: s; }
.series-list a {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .6rem .75rem; border-radius: var(--r); text-decoration: none;
  color: rgba(255,255,255,.9); font-size: .92rem; font-weight: 500;
  background: rgba(255,255,255,.04); transition: background .15s, color .15s;
}
.series-list a::before {
  content: counter(s); flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; font-size: .75rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.series-list a:hover { background: rgba(201,168,76,.14); color: var(--gold); }
.series-list li.series-current a {
  background: rgba(201,168,76,.16); color: var(--gold); font-weight: 700; cursor: default;
}
.series-list li.series-current a::before { background: var(--gold); color: var(--navy); }
.series-list li.series-current a::after {
  content: "Đang đọc"; margin-left: auto; font-size: .7rem; font-weight: 700;
  color: var(--navy); background: var(--gold); padding: .1rem .5rem; border-radius: 99px; align-self: center;
}
.series-prevnext { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.series-prevnext:empty { display: none; }
.series-prevnext a {
  flex: 1; max-width: 48%; text-decoration: none; font-size: .85rem; font-weight: 600;
  color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); padding: .6rem .8rem; transition: background .15s, border-color .15s;
}
.series-prevnext a:hover { background: rgba(201,168,76,.16); border-color: var(--gold); color: var(--gold); }
.series-prevnext .sp-next { text-align: right; margin-left: auto; }
.series-prevnext .sp-label { display: block; font-size: .68rem; font-weight: 700; opacity: .6; text-transform: uppercase; letter-spacing: .4px; }

/* ---------- Tag header ---------- */
.tag-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 4rem 1.5rem;
}
.tag-header-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .15; filter: grayscale(20%);
}
.tag-header-content { position: relative; max-width: var(--max-w); margin: 0 auto; }
.tag-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }
.tag-title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .5rem 0 .75rem; }
.tag-description { color: rgba(255,255,255,.75); font-size: 1rem; max-width: 560px; }

/* ---------- Article header ---------- */
.article-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 4rem 1.5rem 3rem;
}
.article-header-inner { max-width: var(--content-w); margin: 0 auto; }
.article-meta-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-tag-pill {
  background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700;
  padding: .2em .8em; border-radius: 99px; text-decoration: none;
}
.article-tag-pill:hover { background: var(--gold-light); color: var(--navy); }
.article-read-time { font-size: .8rem; color: rgba(255,255,255,.6); }
.article-title { color: #fff; margin: 0 0 .75rem; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.article-excerpt { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 620px; }

.article-byline { display: flex; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); flex-shrink: 0; }
.byline-info { display: flex; flex-direction: column; gap: .1rem; }
.byline-authors { font-weight: 600; color: rgba(255,255,255,.9); font-size: .875rem; }
.byline-date { font-size: .78rem; color: rgba(255,255,255,.55); }

/* Feature image */
.article-feature-image { max-width: var(--content-w); margin: 2.5rem auto 0; padding: 0 1.5rem; }
.article-feature-image img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.article-feature-image figcaption { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: .5rem; font-style: italic; }

/* ---------- Article body layout ---------- */
.article-layout {
  max-width: var(--content-w);
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
}

/* Table of contents — horizontal box above content */
.article-toc {
  background: var(--navy-pale);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-inner { /* wrapper kept for JS compat */ }
.toc-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  margin-bottom: .875rem;
}
#toc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
}
#toc-nav a {
  font-size: .82rem;
  color: var(--text-sec);
  text-decoration: none;
  padding: .2rem .5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .18s;
  white-space: nowrap;
}
#toc-nav a:hover, #toc-nav a.toc-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
#toc-nav .toc-h3 {
  font-size: .78rem;
  opacity: .85;
  padding-left: .75rem;
}

/* ---------- Article content (Ghost's .gh-content) ---------- */
.gh-content {
  max-width: var(--content-w);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.article-body { /* scoped to article layout */ }

.gh-content h2 {
  border-bottom: 2px solid var(--gold);
  padding-bottom: .4rem;
  margin-top: 2.5rem;
}

.gh-content blockquote {
  margin: 1.5rem 0; padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--gold); background: var(--gold-pale);
  border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--text-sec);
}
.gh-content blockquote p:last-child { margin-bottom: 0; }

.gh-content code {
  font-size: .875em; background: var(--navy-pale); color: var(--navy);
  padding: .15em .4em; border-radius: var(--r-sm); font-family: 'JetBrains Mono', 'Fira Code', monospace;
}
.gh-content pre {
  background: var(--navy); color: #e2e8f0; padding: 1.5rem; border-radius: var(--r);
  overflow-x: auto; margin: 1.5rem 0;
}
.gh-content pre code { background: none; color: inherit; padding: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; border-radius: 8px; }
.gh-content table { min-width: 500px; width: 100%; border-collapse: collapse; margin: 0; font-size: .9rem; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.gh-content table th { background: var(--navy); color: #fff; padding: .8rem 1rem; text-align: left; font-weight: 600; }
.gh-content table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.gh-content table tr:nth-child(even) { background: var(--navy-pale); }
.gh-content table tr:hover { background: var(--gold-pale); }

.gh-content figure { margin: 1.5rem 0; }
.gh-content figure img { border-radius: var(--r); box-shadow: var(--sh); }
.gh-content figcaption { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: .5rem; font-style: italic; }

.gh-content hr { border: none; border-top: 2px solid var(--border); margin: 2rem 0; }

/* kg-card styles */
.gh-content .kg-callout-card {
  display: flex; gap: 1rem; padding: 1.25rem 1.5rem;
  border-radius: var(--r); margin: 1.5rem 0;
  border: 1px solid var(--gold-light); background: var(--gold-pale);
}
.gh-content .kg-callout-emoji { font-size: 1.2rem; flex-shrink: 0; }

/* Article tags footer */
.article-tags { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .875rem; }
.article-tag-link { background: var(--navy-pale); color: var(--text-sec); padding: .3em .8em; border-radius: 99px; text-decoration: none; font-size: .8rem; transition: background .2s; }
.article-tag-link:hover { background: var(--navy); color: #fff; }

/* ---------- Related posts / Read more ---------- */
.read-more-section {
  background: var(--navy-pale);
  padding: 3.5rem 1.5rem 4rem;
  margin-top: 3rem;
  border-top: 3px solid var(--gold);
}
.read-more-inner { max-width: var(--max-w); margin: 0 auto; }
.read-more-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.read-more-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  position: relative;
  padding-left: .9rem;
}
.read-more-title::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 4px; height: .85em;
  background: var(--gold);
  border-radius: 2px;
}
.read-more-all {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  opacity: .7;
  transition: opacity .15s;
}
.read-more-all:hover { opacity: 1; color: var(--gold); }

/* ---------- Page (static) ---------- */
.site-main--page { padding-bottom: 4rem; }
.page-header { max-width: var(--content-w); margin: 3rem auto 2rem; padding: 0 1.5rem; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--navy); }
.gh-content--page { max-width: var(--content-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Tools CTA ---------- */
.dtc-tools-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 4rem 1.5rem;
}
.dtc-tools-cta-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.dtc-tools-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.dtc-tools-cta > div > p { color: rgba(255,255,255,.75); margin-bottom: 2rem; font-size: 1rem; }
.dtc-tools-cta-inner > p { color: rgba(255,255,255,.75); margin-bottom: 2rem; }
.dtc-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 700px; margin: 0 auto; }
@media (max-width: 560px) { .dtc-tools-grid { grid-template-columns: 1fr; } }

.dtc-tool-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg); padding: 1.75rem; text-align: left;
  text-decoration: none; color: #fff; transition: background .2s, transform .2s, border-color .2s;
  display: block;
}
.dtc-tool-card:hover { background: rgba(255,255,255,.13); border-color: var(--gold); transform: translateY(-3px); color: #fff; }
.dtc-tool-icon { font-size: 2rem; margin-bottom: .75rem; }
.dtc-tool-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 .5rem; }
.dtc-tool-card p { color: rgba(255,255,255,.7); font-size: .875rem; margin: 0 0 1rem; }
.dtc-tool-link { font-size: .85rem; font-weight: 700; color: var(--gold); }

/* ---------- Footer ---------- */
.gh-foot { background: var(--navy); color: rgba(255,255,255,.7); padding: 3.5rem 1.5rem 1.5rem; }
.gh-foot-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem;
}
@media (max-width: 768px) { .gh-foot-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gh-foot-inner { grid-template-columns: 1fr; } }

.foot-logo { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.foot-logo em { color: var(--gold); font-style: normal; }
.foot-desc { font-size: .875rem; line-height: 1.65; color: rgba(255,255,255,.6); }
.gh-foot-col h4 { color: #fff; font-size: .875rem; font-weight: 700; margin: 0 0 .9rem; text-transform: uppercase; letter-spacing: .04em; }
.gh-foot-col ul { list-style: none; }
.gh-foot-col ul li { margin-bottom: .5rem; }
.gh-foot-col ul a { color: rgba(255,255,255,.6); font-size: .875rem; text-decoration: none; transition: color .2s; }
.gh-foot-col ul a:hover { color: var(--gold); }

.gh-foot-bottom {
  max-width: var(--max-w); margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.4);
}
.gh-foot-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.gh-foot-bottom a:hover { color: var(--gold); }

/* ---------- Error pages ---------- */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.error-page-inner { text-align: center; padding: 2rem; }
.error-404-icon { font-size: 4rem; margin-bottom: 1rem; }
.error-code { font-size: 5rem; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: .5rem; }
.error-message { font-size: 1.1rem; color: var(--text-sec); margin-bottom: 2rem; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Scroll-to-top ---------- */
#dtc-scrolltop {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px; background: var(--navy); color: #fff;
  border: none; border-radius: 50%; cursor: pointer; font-size: 1.2rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--sh); transition: background .2s, transform .2s; z-index: 500;
}
#dtc-scrolltop:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
#dtc-scrolltop.visible { display: flex; }

/* ---------- Ghost native card styles ---------- */
.kg-width-wide  { max-width: 1060px; margin-left: auto; margin-right: auto; }
.kg-width-full  { margin: 0 -1.5rem; }
.kg-image-card  { margin: 1.5rem 0; }
.kg-image-card img { border-radius: var(--r); }
.kg-gallery-container { display: flex; flex-direction: column; gap: .5rem; margin: 1.5rem 0; }
.kg-gallery-row { display: flex; gap: .5rem; }
.kg-gallery-image { flex: 1; min-width: 0; }
.kg-gallery-image img { width: 100%; border-radius: var(--r-sm); object-fit: cover; }
.kg-video-card { margin: 1.5rem 0; }
.kg-video-card video { width: 100%; border-radius: var(--r); }
.kg-bookmark-card {
  margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; display: flex; text-decoration: none; color: inherit; transition: box-shadow .2s;
}
.kg-bookmark-card:hover { box-shadow: var(--sh); }
.kg-bookmark-content { padding: 1.1rem; flex: 1; }
.kg-bookmark-title { font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: .3rem; }
.kg-bookmark-description { font-size: .825rem; color: var(--text-sec); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-toggle-card { border: 1px solid var(--border); border-radius: var(--r); margin: 1rem 0; }
.kg-toggle-heading-text { padding: 1rem 1.25rem; font-weight: 700; cursor: pointer; }
.kg-toggle-content { padding: 0 1.25rem 1rem; color: var(--text-sec); font-size: .95rem; }
.kg-button-card { text-align: center; margin: 1.5rem 0; }
.kg-btn { display: inline-flex; padding: .75rem 1.75rem; background: var(--gold); color: var(--navy); border-radius: 99px; font-weight: 700; text-decoration: none; }
.kg-btn:hover { background: var(--gold-light); color: var(--navy); }

/* ---------- Hero search bar ---------- */
.dtc-hero-search { margin-top: 1.75rem; width: 100%; max-width: 560px; }
.dtc-hero-search-inner {
  display: flex; align-items: center; background: #fff;
  border-radius: 99px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
.dtc-hero-search svg {
  flex-shrink: 0; width: 20px; height: 20px;
  margin-left: 1.1rem; color: var(--text-sec); pointer-events: none;
}
.dtc-hero-search input[type="search"] {
  flex: 1; border: none; outline: none; padding: .85rem .75rem;
  font-size: .95rem; font-family: inherit; color: var(--text-primary);
  background: transparent;
}
.dtc-hero-search input[type="search"]::placeholder { color: var(--text-sec); }
.dtc-hero-search button {
  flex-shrink: 0; padding: .75rem 1.4rem; margin: .3rem .3rem .3rem 0;
  background: var(--gold); color: var(--navy); border: none; border-radius: 99px;
  font-weight: 700; font-size: .88rem; font-family: inherit;
  cursor: pointer; transition: background .15s; white-space: nowrap;
}
.dtc-hero-search button:hover { background: var(--gold-light); }
@media (max-width: 480px) {
  .dtc-hero-search { max-width: 100%; }
  .dtc-hero-search button { padding: .7rem 1rem; font-size: .82rem; }
}

/* ---------- Search page ---------- */
.dtc-search-wrap { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.dtc-search-top { margin-bottom: 2rem; }

.dtc-search-box {
  position: relative; margin-bottom: 1.25rem;
}
.dtc-search-box svg {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-sec); pointer-events: none;
}
#dtc-search-q {
  width: 100%; padding: .85rem 1.25rem .85rem 3rem;
  font-size: 1.05rem; font-family: inherit;
  border: 2px solid var(--border); border-radius: var(--r);
  outline: none; transition: border-color .2s, box-shadow .2s;
  background: #fff; color: var(--text-primary);
}
#dtc-search-q:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,33,55,.1); }
#dtc-search-q::placeholder { color: var(--text-sec); }

.dtc-filter-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.dtc-fpill {
  padding: .45rem 1rem; font-size: .82rem; font-weight: 600; font-family: inherit;
  border: 2px solid var(--border); border-radius: 99px; background: #fff;
  color: var(--text-sec); cursor: pointer; transition: all .15s;
}
.dtc-fpill:hover { border-color: var(--navy); color: var(--navy); }
.dtc-fpill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.dtc-search-count { font-size: .82rem; color: var(--text-sec); margin-bottom: 1.25rem; }

.dtc-search-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.src-card {
  display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  color: inherit; transition: box-shadow .2s, transform .2s;
}
.src-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.src-card-img {
  width: 140px; flex-shrink: 0; background-size: cover; background-position: center;
  background-color: var(--navy-pale);
}
.src-card-img--empty { background-image: none; }
.src-card-body { padding: 1rem 1rem 1rem 0; flex: 1; min-width: 0; }
.src-card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.src-card-tags span {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--gold); background: var(--gold-pale); padding: .2rem .55rem; border-radius: 99px;
}
.src-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; line-height: 1.35; }
.src-card-body p { font-size: .85rem; color: var(--text-sec); line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dtc-search-empty { text-align: center; color: var(--text-sec); padding: 3rem 0; font-size: 1rem; }

/* ---------- Search icon in header ---------- */
.dtc-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: rgba(255,255,255,.8); background: transparent; border: none;
  cursor: pointer; transition: background .15s, color .15s; text-decoration: none;
}
.dtc-search-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.dtc-search-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ══════════════════════════════════════════════════════ */

/* Zoomable images — show pointer + subtle hover ring */
img.lb-zoomable {
  cursor: zoom-in;
  transition: box-shadow .18s;
  border-radius: 4px;
}
img.lb-zoomable:hover {
  box-shadow: 0 0 0 3px rgba(201,168,76,.55);
}

/* Overlay backdrop */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 16, 38, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: lb-fadein .2s ease forwards;
  cursor: zoom-out;
}
.lb-overlay.lb-closing {
  animation: lb-fadeout .18s ease forwards;
}

/* Displayed image */
.lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 64px rgba(0,0,0,.7);
  cursor: default;
  animation: lb-scalein .22s cubic-bezier(.34,1.56,.64,1) forwards;
  transform-origin: center;
}

/* Close button — circle with × */
.lb-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: rgba(10,26,60,.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s, transform .15s;
  z-index: 10000;
  padding: 0;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.lb-close:hover,
.lb-close:focus-visible {
  background: rgba(201,168,76,.25);
  border-color: var(--gold, #c9a84c);
  color: var(--gold, #c9a84c);
  transform: scale(1.1);
  outline: none;
}

/* Animations */
@keyframes lb-fadein  { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-fadeout { from { opacity: 1; } to { opacity: 0; } }
@keyframes lb-scalein { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 600px) {
  .src-card-img { width: 100px; }
  .src-card-body h3 { font-size: .9rem; }
}
@media (max-width: 480px) {
  .dtc-hero { padding: 3rem 1.5rem; }
  .dtc-hero-btns { flex-direction: column; }
  .dtc-hero-btns .gh-btn { text-align: center; }
  .tag-header { padding: 3rem 1.5rem; }
  .article-header { padding: 2.5rem 1.5rem; }
}
