@charset "UTF-8";
/* Tách từ page.php – chỉ tải trên template này (xem functions.php → pd_page_styles) */
/* ── CSS VARIABLES ── */
:root {
  --pd-navy:       var(--pdc-primary,#0a1628);
  --pd-navy-light: var(--pdc-primary-2,#1a3558);
  --pd-gold:       var(--pdc-accent,#c9a227);
  --pd-red:        var(--pdc-cta,#e40000);
  --pd-gold-light: var(--pdc-accent-l,#e8c55a);
  --pd-gold-pale:  var(--pdc-accent-pale,#f5e8bb);
  --pd-white:      #ffffff;
  --pd-off-white:  #f8f6f1;
  --pd-gray:       #8a96a8;
  --pd-text:       #2c3e50;
  --pd-red-cta:    var(--pdc-cta,#e53935);
  --pd-red-cta-dark: var(--pdc-cta-d,#c62828);
  --pd-border:     #e5e1d8;
}
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--pdf-body,'Be Vietnam Pro'), sans-serif; color: var(--pd-text); }

/* ── LAYOUT ── */
.pd-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── PAGE HERO ── */
.pd-page-hero {
  background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-navy-light) 100%);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.pd-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(var(--pdc-accent-rgb,201,162,39),.08) 0%, transparent 70%);
  pointer-events: none;
}
.pd-page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pd-gold) 0%, var(--pd-gold-light) 50%, var(--pd-gold) 100%);
}
.pd-page-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Breadcrumb */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
}
.pd-breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.pd-breadcrumb a:hover { color: var(--pd-gold); }
.pd-breadcrumb .pd-bc-sep { color: rgba(255,255,255,.25); }
.pd-breadcrumb .pd-bc-current {
  color: var(--pd-gold-light);
  font-weight: 600;
}

/* Page title */
.pd-page-title {
  font-family: var(--pdf-head,'Playfair Display'), serif;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 900;
  color: var(--pd-white);
  line-height: 1.2;
  margin: 0;
}
.pd-page-title em { color: var(--pd-gold); font-style: normal; }
.pd-page-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 520px;
  margin-top: 4px;
  line-height: 1.65;
}

/* ── MAIN LAYOUT ── */
.pd-page-wrap {
  background: var(--pd-white);
  padding: 64px 0 80px;
}
.pd-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}
/* No sidebar variant */
.pd-page-layout.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}

/* ── CONTENT AREA ── */
.pd-page-content {
  min-width: 0;
}

/* ── WordPress Core Typography ── */
.pd-page-content h1,
.pd-page-content h2,
.pd-page-content h3,
.pd-page-content h4,
.pd-page-content h5,
.pd-page-content h6 {
  font-family: var(--pdf-head,'Playfair Display'), serif;
  color: var(--pd-navy);
  line-height: 1.3;
  margin: 1.6em 0 .6em;
}
.pd-page-content h1 { font-size: clamp(22px, 2.8vw, 36px); font-weight: 900; }
.pd-page-content h2 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; }
.pd-page-content h3 { font-size: clamp(17px, 2vw, 24px); font-weight: 700; }
.pd-page-content h4 { font-size: 18px; font-weight: 700; font-family: var(--pdf-body,'Be Vietnam Pro'), sans-serif; }
.pd-page-content h5 { font-size: 16px; font-weight: 700; font-family: var(--pdf-body,'Be Vietnam Pro'), sans-serif; }
.pd-page-content h6 { font-size: 14px; font-weight: 700; font-family: var(--pdf-body,'Be Vietnam Pro'), sans-serif; color: var(--pd-gray); }
.pd-page-content h2:first-child { margin-top: 0; }

.pd-page-content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--pd-text);
  margin-bottom: 1.25em;
}
.pd-page-content p:last-child { margin-bottom: 0; }

/* Gold underline divider after h2 */
.pd-page-content h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--pd-gold);
  border-radius: 2px;
  margin-top: 10px;
}

/* Links */
.pd-page-content a {
  color: var(--pd-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.pd-page-content a:hover { color: var(--pd-navy); }

/* Lists */
.pd-page-content ul,
.pd-page-content ol {
  padding-left: 1.6em;
  margin-bottom: 1.25em;
}
.pd-page-content li {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--pd-text);
  margin-bottom: .4em;
}
.pd-page-content ul li::marker { color: var(--pd-gold); }
.pd-page-content ol li::marker { color: var(--pd-gold); font-weight: 700; }

/* Blockquote */
.pd-page-content blockquote {
  border-left: 4px solid var(--pd-gold);
  margin: 2em 0;
  padding: 18px 24px;
  background: var(--pd-off-white);
  border-radius: 0 10px 10px 0;
}
.pd-page-content blockquote p {
  font-size: 16px;
  font-style: italic;
  color: var(--pd-navy);
  margin: 0;
}
.pd-page-content blockquote cite {
  display: block;
  font-size: 13px;
  color: var(--pd-gray);
  margin-top: 8px;
  font-style: normal;
  font-weight: 600;
}

/* Tables */
.pd-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: 14.5px;
}
.pd-page-content th {
  background: var(--pd-navy);
  color: var(--pd-white);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  letter-spacing: .5px;
}
.pd-page-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--pd-border);
  color: var(--pd-text);
}
.pd-page-content tr:nth-child(even) td { background: var(--pd-off-white); }
.pd-page-content tr:hover td { background: var(--pd-gold-pale); }

/* Images */
.pd-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: .5em 0;
}
.pd-page-content figure { margin: 2em 0; }
.pd-page-content figcaption {
  font-size: 12.5px;
  color: var(--pd-gray);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Code */
.pd-page-content code {
  background: var(--pd-off-white);
  border: 1px solid var(--pd-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: var(--pd-red);
}
.pd-page-content pre {
  background: var(--pd-navy);
  color: rgba(255,255,255,.85);
  border-radius: 10px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.pd-page-content pre code {
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  padding: 0;
}

/* Horizontal rule */
.pd-page-content hr {
  border: none;
  border-top: 2px solid var(--pd-border);
  margin: 2.5em 0;
}

/* Highlight */
.pd-page-content mark {
  background: var(--pd-gold-pale);
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--pd-navy);
}

/* ── SIDEBAR ── */
.pd-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Sidebar widget base */
.pd-widget {
  background: var(--pd-off-white);
  border: 1px solid var(--pd-border);
  border-radius: 14px;
  overflow: hidden;
}
.pd-widget-title {
  font-family: var(--pdf-head,'Playfair Display'), serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-white);
  background: var(--pd-navy);
  padding: 14px 18px;
  margin: 0;
  letter-spacing: .3px;
}
.pd-widget-body { padding: 18px; }

/* Contact widget */
.pd-widget-contact .pd-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pd-border);
  font-size: 13.5px;
}
.pd-widget-contact .pd-contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.pd-widget-contact .pd-c-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.pd-widget-contact .pd-c-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--pd-gray);
  margin-bottom: 2px;
}
.pd-widget-contact .pd-c-value {
  font-weight: 600;
  color: var(--pd-navy);
  text-decoration: none;
  transition: color .2s;
  font-size: 14px;
}
.pd-widget-contact .pd-c-value:hover { color: var(--pd-gold); }

/* CTA widget */
.pd-widget-cta {
  background: linear-gradient(135deg, var(--pd-navy) 0%, var(--pd-navy-light) 100%);
  border: none;
  border-radius: 14px;
  text-align: center;
  padding: 28px 20px;
}
.pd-widget-cta .pd-widget-cta-title {
  font-family: var(--pdf-head,'Playfair Display'), serif;
  font-size: 18px;
  color: var(--pd-white);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}
.pd-widget-cta p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
  line-height: 1.6;
}
.pd-btn-cta-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--pd-red-cta);
  color: var(--pd-white);
  font-weight: 800;
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 9px;
  text-decoration: none;
  transition: background .2s, transform .2s;
  margin-bottom: 10px;
}
.pd-btn-cta-sidebar:hover { background: var(--pd-red-cta-dark); transform: scale(1.03); }
.pd-btn-outline-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.pd-btn-outline-sidebar:hover { border-color: var(--pd-gold); color: var(--pd-gold); }

/* Recent posts widget */
.pd-widget-posts .pd-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pd-border);
  text-decoration: none;
  transition: opacity .2s;
}
.pd-widget-posts .pd-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.pd-widget-posts .pd-post-item:hover { opacity: .75; }
.pd-widget-posts .pd-post-thumb {
  width: 62px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--pd-border);
}
.pd-widget-posts .pd-post-info h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-navy);
  line-height: 1.4;
  margin-bottom: 4px;
}
.pd-widget-posts .pd-post-info span { font-size: 11px; color: var(--pd-gray); }

/* Products widget */
.pd-widget-products a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pd-border);
  text-decoration: none;
  color: var(--pd-navy);
  font-size: 13.5px;
  font-weight: 600;
  transition: color .2s;
}
.pd-widget-products a:last-child { border-bottom: none; padding-bottom: 0; }
.pd-widget-products a::before { content: '\1F6D7'; font-size: 16px; flex-shrink: 0; }
.pd-widget-products a:hover { color: var(--pd-gold); }

/* ── PAGE NAV (prev/next child pages) ── */
.pd-page-nav {
  display: flex;
  gap: 16px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 2px solid var(--pd-border);
}
.pd-page-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--pd-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .2s, background .2s;
  background: var(--pd-off-white);
}
.pd-page-nav-btn:hover { border-color: var(--pd-gold); background: var(--pd-gold-pale); }
.pd-page-nav-btn.next { text-align: right; }
.pd-page-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pd-gray);
}
.pd-page-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-navy);
  line-height: 1.4;
}

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) { .js .pd-reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; } }
@media (prefers-reduced-motion: no-preference) { .js .pd-reveal.visible { opacity: 1; transform: none; } }
.pd-reveal-d1 { transition-delay: .1s; }
.pd-reveal-d2 { transition-delay: .2s; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .pd-page-layout { grid-template-columns: 1fr; }
  .pd-sidebar { position: static; }
}
@media (max-width: 600px) {
  .pd-page-wrap { padding: 40px 0 60px; }
  .pd-page-hero { padding: 52px 0 44px; }
  .pd-page-nav { flex-direction: column; }
  .pd-page-nav-btn.next { text-align: left; }
}

.pd-breadcrumb .pd-bc-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pd-breadcrumb .pd-bc-list li { display: inline-flex; align-items: center; gap: 6px; }
.pd-post-info h3 { margin: 0; }
