﻿  :root {
    --navy: #0a243d;
    --navy-deep: #061626;
    --navy-soft: #1a3a55;
    --navy-rgb: 10,36,61;

    --gold: #c5a059;
    --gold-soft: #d9b878;
    --gold-deep: #9c7e3f;
    --gold-rgb: 197,160,89;

    --teal: #4ecdc4;
    --teal-soft: #8de0d9;
    --teal-deep: #2fa39a;
    --teal-rgb: 78,205,196;

    --white: #ffffff;
    --bg-faint: #fafbfc;
    --bg-soft: #f5f7fa;
    --line: #e6e9ef;
    --ink: #2d3748;
    --ink-soft: #5a6478;
    --wa: #25d366;
    --fb: #1877f2;
    --tw: #1da1f2;
    --li: #0a66c2;

    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 4px 20px rgba(var(--navy-rgb),0.06);
    --shadow-md: 0 12px 40px rgba(var(--navy-rgb),0.12);

    --font-display: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Open Sans', system-ui, sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    line-height: 1.65;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; background: none; }

  .container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
  }

  /* ===================== HEADER ===================== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.04em;
  }
  .logo-mark {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: grid; place-items: center;
    font-weight: 800;
    flex-shrink: 0;
  }
  .logo-text { display: flex; flex-direction: column; line-height: 1; }
  .logo-text span:last-child {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-top: 4px;
  }
  .nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0; margin: 0;
    font-size: 0.92rem;
    font-weight: 500;
  }
  .nav a {
    position: relative;
    padding: 4px 0;
    color: var(--navy);
  }
  .nav a.is-active { color: var(--gold-deep); }
  .nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: 16px; }
  .lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--navy);
  }
  .lang-switcher a,
  .lang-switcher button {
    color: inherit;
    opacity: 0.75;
    padding: 4px 6px;
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
  }
  .lang-switcher a.active,
  .lang-switcher button.active { opacity: 1; color: var(--gold-deep); }
  .lang-switcher a:hover,
  .lang-switcher button:hover { opacity: 1; color: var(--gold-deep); }
  .lang-divider { opacity: 0.35; }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--gold);
    color: var(--navy);
    box-shadow: 0 6px 18px rgba(var(--gold-rgb),0.3);
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    background: var(--gold-soft);
    box-shadow: 0 12px 26px rgba(var(--gold-rgb),0.42);
  }

  /* ===================== READING PROGRESS ===================== */
  .reading-progress {
    position: fixed;
    top: 69px;
    left: 0; right: 0;
    height: 3px;
    background: var(--bg-soft);
    z-index: 49;
  }
  .reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    transition: width 0.05s linear;
  }

  /* ===================== BREADCRUMBS ===================== */
  .crumbs {
    padding: 24px 0 8px;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }
  .crumbs .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .crumbs a { transition: color 0.2s; }
  .crumbs a:hover { color: var(--gold-deep); }
  .crumbs svg { width: 10px; height: 10px; opacity: 0.5; }
  .crumbs .here {
    color: var(--navy);
    font-weight: 600;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ===================== LAYOUT ===================== */
  .post-wrap {
    padding: 24px 0 80px;
  }
  .post-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: start;
  }
  .article {
    max-width: 760px;
    width: 100%;
  }

  /* ===================== ARTICLE HEADER ===================== */
  .badge-cat {
    display: inline-block;
    background: rgba(var(--teal-rgb),0.14);
    color: var(--teal-deep);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
  }
  .article h1 {
    font-family: var(--font-display);
    color: var(--navy);
    font-size: clamp(1.85rem, 4.4vw, 2.625rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin: 0 0 20px;
  }
  .article .lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--ink-soft);
    line-height: 1.55;
    font-weight: 400;
    margin: 0 0 32px;
    text-wrap: pretty;
    max-width: 680px;
  }
  .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--bg-soft);
    border-bottom: 1px solid var(--bg-soft);
    font-size: 0.92rem;
    color: var(--ink-soft);
  }
  .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  .meta-item svg {
    width: 16px; height: 16px;
    color: var(--teal-deep);
    flex-shrink: 0;
  }
  .meta-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    flex-shrink: 0;
  }
  .meta-author-name { color: var(--navy); font-weight: 600; }

  .share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
  }
  .share-row .label {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-weight: 600;
    margin-right: 4px;
  }
  .share-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--navy);
    display: grid; place-items: center;
    transition: background 0.25s, color 0.25s, transform 0.25s;
  }
  .share-btn:hover { transform: translateY(-2px); color: var(--white); }
  .share-btn.facebook:hover { background: var(--fb); }
  .share-btn.twitter:hover { background: var(--tw); }
  .share-btn.whatsapp:hover { background: var(--wa); }
  .share-btn.linkedin:hover { background: var(--li); }
  .share-btn.link:hover { background: var(--gold); color: var(--navy); }
  .share-btn svg { width: 18px; height: 18px; }

  /* ===================== FEATURED IMAGE ===================== */
  .featured-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(var(--navy-rgb),0.1);
    position: relative;
    aspect-ratio: 16/9;
    background: var(--navy);
  }
  .featured-image .img-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background:
      linear-gradient(135deg, rgba(var(--navy-rgb),0.15) 0%, rgba(var(--navy-rgb),0.55) 100%),
      repeating-linear-gradient(115deg, #1a3a55 0px, #1a3a55 22px, #245070 22px, #245070 44px);
  }
  .img-label {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Courier New', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    background: rgba(0,0,0,0.35);
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
  }
  .image-caption {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--ink-soft);
    text-align: center;
    margin: -24px 0 32px;
    padding: 0 12px;
  }

  /* ===================== ARTICLE BODY ===================== */
  .article-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--ink);
    max-width: 720px;
  }
  .article-body > p,
  .article-body > ul,
  .article-body > ol,
  .article-body > blockquote {
    margin: 0 0 24px;
  }
  .article-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 56px 0 20px;
    scroll-margin-top: 120px;
    letter-spacing: -0.01em;
  }
  .article-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin: 36px 0 14px;
    scroll-margin-top: 120px;
  }
  .article-body h2 + p,
  .article-body h3 + p { margin-top: 0; }
  .article-body p strong { color: var(--navy); font-weight: 700; }
  .article-body a {
    color: var(--gold-deep);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.2s;
  }
  .article-body a:hover { color: var(--gold); font-weight: 600; }

  .article-body figure {
    margin: 36px 0;
  }
  .article-body figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
  }
  .article-body figcaption {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 0.86rem;
    font-style: italic;
    text-align: center;
  }
  .post-image-placeholder {
    display: grid;
    min-height: 280px;
    place-items: center;
    padding: 32px;
    border-radius: 12px;
    background:
      linear-gradient(135deg, rgba(var(--navy-rgb),0.16), rgba(var(--navy-rgb),0.42)),
      repeating-linear-gradient(115deg, var(--navy-soft) 0px, var(--navy-soft) 22px, var(--navy) 22px, var(--navy) 44px);
    color: rgba(255,255,255,0.72);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
  }

  .post-quote-box {
    display: grid;
    gap: 16px;
    margin-top: 40px;
    padding: 24px;
    background: var(--bg-faint);
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .post-quote-box p { margin: 0; }
  .post-quote-box .btn { justify-self: start; }

  /* Lists */
  .article-body ul,
  .article-body ol {
    padding-left: 28px;
  }
  .article-body li {
    margin-bottom: 10px;
    padding-left: 4px;
  }
  .article-body ul li::marker { color: var(--teal); }
  .article-body ol li::marker { color: var(--gold-deep); font-weight: 700; }

  /* Blockquote */
  .article-body blockquote {
    background: var(--bg-faint);
    border-left: 4px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: 22px 26px;
    margin: 36px 0;
    font-size: 1.15rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--navy);
    position: relative;
  }
  .article-body blockquote::before {
    content: '"';
    position: absolute;
    top: 4px; right: 18px;
    font-family: Georgia, serif;
    font-size: 4rem;
    line-height: 1;
    color: rgba(var(--gold-rgb),0.3);
    font-style: normal;
  }
  .article-body blockquote p:last-child { margin-bottom: 0; }
  .article-body blockquote cite {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--ink-soft);
    margin-top: 12px;
    font-family: var(--font-display);
    font-weight: 600;
  }

  /* Inline code */
  .article-body code {
    background: var(--bg-soft);
    color: var(--navy);
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.92em;
  }

  /* Table */
  .article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .article-body th {
    background: var(--navy);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
  }
  .article-body td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    background: var(--white);
  }
  .article-body tr:last-child td { border-bottom: none; }
  .article-body tr:hover td { background: var(--bg-faint); }
  .article-body td strong { color: var(--navy); }

  /* Callouts */
  .callout {
    display: flex;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 0 10px 10px 0;
    margin: 32px 0;
    background: var(--bg-faint);
    border-left: 4px solid var(--ink-soft);
    line-height: 1.6;
  }
  .callout-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--white);
    font-size: 1rem;
    line-height: 1;
  }
  .callout-icon svg { width: 18px; height: 18px; }
  .callout-body { flex: 1; }
  .callout-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }
  .callout p { margin: 0; font-size: 1rem; color: var(--ink); }
  .callout.tip { background: rgba(var(--teal-rgb),0.08); border-left-color: var(--teal); }
  .callout.tip .callout-icon { background: var(--teal); }
  .callout.tip .callout-title { color: var(--teal-deep); }
  .callout.warn { background: rgba(245,158,11,0.08); border-left-color: #f59e0b; }
  .callout.warn .callout-icon { background: #f59e0b; }
  .callout.warn .callout-title { color: #b45309; }
  .callout.info { background: rgba(59,130,246,0.08); border-left-color: #3b82f6; }
  .callout.info .callout-icon { background: #3b82f6; }
  .callout.info .callout-title { color: #1d4ed8; }
  .callout.success { background: rgba(16,185,129,0.08); border-left-color: #10b981; }
  .callout.success .callout-icon { background: #10b981; }
  .callout.success .callout-title { color: #047857; }

  /* Checklist (âœ…) */
  .check-list {
    list-style: none;
    padding-left: 0;
    margin: 24px 0;
  }
  .check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
  }
  .check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(var(--teal-rgb),0.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fa39a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Inline CTA */
  .inline-cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--white);
    padding: 44px 36px;
    border-radius: 14px;
    text-align: center;
    margin: 56px 0;
    box-shadow: 0 12px 36px rgba(var(--navy-rgb),0.18);
    position: relative;
    overflow: hidden;
  }
  .inline-cta::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(var(--gold-rgb),0.18) 0%, transparent 70%);
    pointer-events: none;
  }
  .inline-cta::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -20%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(var(--teal-rgb),0.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .inline-cta > * { position: relative; z-index: 1; }
  .inline-cta-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(var(--teal-rgb),0.18);
    color: var(--teal);
    display: grid; place-items: center;
  }
  .inline-cta-icon svg { width: 32px; height: 32px; }
  .inline-cta h3 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-wrap: balance;
  }
  .inline-cta p {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    margin: 0 0 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .inline-cta .btn {
    background: var(--gold);
    color: var(--navy);
    padding: 14px 32px;
    box-shadow: 0 8px 24px rgba(var(--gold-rgb),0.3);
  }
  .inline-cta .btn:hover {
    background: var(--gold-soft);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(var(--gold-rgb),0.45);
  }

  /* Tags */
  .post-tags {
    margin: 56px 0 32px;
    padding-top: 28px;
    border-top: 1px solid var(--bg-soft);
  }
  .post-tags-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-right: 8px;
  }
  .tag {
    display: inline-block;
    background: var(--bg-faint);
    color: var(--navy);
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 4px 4px 4px 0;
    transition: all 0.2s;
    border: 1px solid var(--line);
  }
  .tag:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-2px);
  }

  /* Share Bottom */
  .share-bottom {
    background: var(--bg-faint);
    padding: 28px 32px;
    border-radius: 12px;
    text-align: center;
    margin: 32px 0;
  }
  .share-bottom-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
  }
  .share-bottom-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }
  .share-bottom .share-btn {
    width: 46px; height: 46px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }
  .share-bottom .share-btn svg { width: 20px; height: 20px; }

  /* Author Bio */
  .author-bio {
    background: var(--white);
    border: 1.5px solid var(--bg-soft);
    border-radius: 14px;
    padding: 32px;
    margin: 48px 0;
    display: flex;
    gap: 24px;
    align-items: flex-start;
  }
  .author-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
    color: var(--navy);
    border: 3px solid var(--gold);
    flex-shrink: 0;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
  }
  .author-info { flex: 1; }
  .author-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal-deep);
    margin-bottom: 6px;
  }
  .author-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 4px;
  }
  .author-role {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--teal-deep);
    margin-bottom: 12px;
  }
  .author-bio-text {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 14px;
  }
  .author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-deep);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.25s, color 0.25s;
  }
  .author-link:hover { color: var(--gold); gap: 10px; }
  .author-link svg { width: 14px; height: 14px; }

  /* Related Posts */
  .related {
    margin: 64px 0 24px;
  }
  .related h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    text-align: center;
    margin: 0 0 36px;
    letter-spacing: -0.01em;
  }
  .related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .rel-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
  }
  .rel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }
  .rel-thumb {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
  }
  .rel-thumb .img-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .rel-card:hover .rel-thumb .img-fill { transform: scale(1.06); }

  .pl-a { background:
    linear-gradient(135deg, rgba(var(--teal-rgb),0.15), rgba(var(--navy-rgb),0.45)),
    repeating-linear-gradient(75deg, #3aa8a0 0px, #3aa8a0 20px, #4ec1b8 20px, #4ec1b8 40px); }
  .pl-b { background:
    linear-gradient(135deg, rgba(var(--navy-rgb),0.2), rgba(var(--navy-rgb),0.5)),
    repeating-linear-gradient(45deg, #2a5a85 0px, #2a5a85 18px, #346a99 18px, #346a99 36px); }
  .pl-c { background:
    linear-gradient(135deg, rgba(var(--gold-rgb),0.18), rgba(var(--navy-rgb),0.5)),
    repeating-linear-gradient(110deg, #8da6c0 0px, #8da6c0 16px, #9eb5cc 16px, #9eb5cc 32px); }

  .rel-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
  .rel-cat {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal-deep);
    margin-bottom: 10px;
  }
  .rel-card h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }
  .rel-card:hover h3 { color: var(--gold-deep); }
  .rel-meta {
    font-size: 0.82rem;
    color: var(--ink-soft);
  }
  .rel-meta svg { width: 12px; height: 12px; color: var(--teal-deep); vertical-align: middle; margin-right: 4px; }

  /* ===================== SIDEBAR ===================== */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .widget {
    background: var(--white);
    border: 1px solid var(--bg-soft);
    border-radius: 12px;
    padding: 22px;
  }
  .widget-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .widget-title svg {
    width: 14px; height: 14px;
    color: var(--gold-deep);
  }

  /* TOC */
  .toc-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .toc-list a {
    display: block;
    padding: 8px 14px;
    border-left: 2px solid var(--bg-soft);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: all 0.2s;
    position: relative;
  }
  .toc-list a:hover {
    color: var(--gold-deep);
    border-left-color: var(--gold-soft);
    background: var(--bg-faint);
  }
  .toc-list a.active {
    color: var(--gold-deep);
    font-weight: 700;
    border-left-color: var(--gold);
    background: rgba(var(--gold-rgb),0.06);
  }
  .toc-list .toc-num {
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    margin-right: 8px;
    font-variant-numeric: tabular-nums;
  }
  .toc-list a.active .toc-num { color: var(--gold); }

  /* Sidebar Author */
  .side-author {
    text-align: center;
  }
  .side-author .author-avatar {
    margin: 0 auto 14px;
    width: 64px; height: 64px;
    font-size: 1.1rem;
  }
  .side-author .author-name { font-size: 1.05rem; margin-bottom: 2px; }
  .side-author .author-role { font-size: 0.78rem; margin-bottom: 10px; }
  .side-author p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 0 12px;
  }

  /* Sidebar CTA */
  .widget-cta {
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 100%);
    color: var(--white);
    border: none;
    padding: 26px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .widget-cta::before {
    content: '';
    position: absolute;
    top: -50%; right: -40%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(var(--gold-rgb),0.15) 0%, transparent 70%);
    pointer-events: none;
  }
  .widget-cta > * { position: relative; z-index: 1; }
  .widget-cta-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--wa);
    color: var(--white);
    display: grid; place-items: center;
  }
  .widget-cta-icon svg { width: 26px; height: 26px; }
  .widget-cta h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 6px;
  }
  .widget-cta p {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
    margin: 0 0 16px;
  }
  .widget-cta .btn {
    width: 100%;
    background: var(--gold);
    color: var(--navy);
    padding: 11px 18px;
    font-size: 0.88rem;
  }
  .widget-cta .btn:hover { background: var(--gold-soft); transform: translateY(-2px); }

  /* Popular */
  .pop-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .pop-item {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .pop-thumb {
    width: 56px; height: 56px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-soft);
  }
  .pop-thumb .img-fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .pop-body {
    flex: 1;
    min-width: 0;
  }
  .pop-body a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
  }
  .pop-body a:hover { color: var(--gold-deep); }
  .pop-meta {
    font-size: 0.72rem;
    color: var(--ink-soft);
    margin-top: 4px;
  }

  /* ===================== FLOATING SHARE (DESKTOP) ===================== */
  .float-share {
    position: fixed;
    left: max(16px, calc((100vw - 1240px) / 2 - 60px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30;
  }
  .float-share .share-btn {
    width: 42px; height: 42px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--bg-soft);
  }
  .float-share .share-btn svg { width: 16px; height: 16px; }
  .float-share-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-soft);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin: 0 auto 8px;
  }

  /* ===================== FOOTER (minimal) ===================== */
  .site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.65);
    padding: 56px 0 28px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer-brand .logo { color: var(--white); margin-bottom: 14px; }
  .footer-brand p {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    max-width: 320px;
  }
  .footer-col h5 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 16px;
  }
  .footer-col ul {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    gap: 10px;
  }
  .footer-col a {
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--gold); }
  .footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  .footer-bottom-links { display: flex; gap: 22px; }
  .footer-bottom a:hover { color: var(--gold); }

  /* ===================== FLOATING BUTTONS ===================== */
  .wa-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--wa);
    color: var(--white);
    display: grid; place-items: center;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(37,211,102,0.4);
    transition: transform 0.25s;
    animation: pulse 2.5s ease-in-out infinite;
  }
  .wa-float:hover { transform: scale(1.08); animation-play-state: paused; }
  .wa-float svg { width: 28px; height: 28px; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
    50% { box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 0 0 16px rgba(37,211,102,0); }
  }
  .back-to-top {
    position: fixed;
    bottom: 96px; right: 30px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: grid; place-items: center;
    z-index: 99;
    box-shadow: 0 6px 18px rgba(var(--gold-rgb),0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s, background 0.2s;
  }
  .back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .back-to-top:hover { background: var(--gold-soft); }
  .back-to-top svg { width: 18px; height: 18px; }

  /* Toast */
  .toast {
    position: fixed;
    bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .toast svg { width: 16px; height: 16px; color: var(--teal); }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ===================== RESPONSIVE ===================== */
  @media (max-width: 1320px) {
    .float-share { display: none; }
  }
  @media (max-width: 1024px) {
    .post-grid { grid-template-columns: 1fr; gap: 40px; }
    .sidebar {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 20px;
    }
    .sidebar .widget { flex: 1 1 calc(50% - 10px); min-width: 280px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .nav, .header-actions .btn { display: none; }
    .reading-progress { top: 65px; }
    .post-wrap { padding: 12px 0 60px; }
    .article-body { font-size: 1.06rem; line-height: 1.75; }
    .article-body h2 { margin: 40px 0 16px; }
    .article-body h3 { margin: 28px 0 12px; }
    .article-meta { gap: 14px; font-size: 0.85rem; }
    .author-bio { flex-direction: column; padding: 24px; text-align: center; }
    .author-avatar { margin: 0 auto; }
    .inline-cta { padding: 36px 24px; margin: 40px 0; }
    .inline-cta h3 { font-size: 1.25rem; }
    .related-grid { grid-template-columns: 1fr; }
    .sidebar .widget { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .back-to-top { bottom: 88px; right: 22px; }
    .article-body table { font-size: 0.86rem; }
    .article-body th, .article-body td { padding: 10px 12px; }
  }
