/*
Theme Name: DichVuSMSVN
Theme URI: https://dichvusmsvn.com
Description: Custom theme for dichvusmsvn.com
Version: 1.0
Author: Digicom
*/

*, body { font-family: 'Be Vietnam Pro', sans-serif; }

:root {
  --teal:  #00B39C;
  --navy:  #004DD8;
  --dark:  #0A1628;
  --mist:  #F0FBF9;
  --stone: #6B7A8D;
  --rule:  #E3E8EF;
}

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

body {
  background: #fff;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* Remove WP default styles */
.wp-block-post-content,
.entry-content,
.wp-site-blocks {
  all: unset;
}

/* Nav */
#nav {
  background: #fff;
  border-bottom: 1px solid var(--rule);
}

/* Scroll reveal */
.up { opacity:0; transform:translateY(22px); transition:opacity .65s ease,transform .65s ease; }
.up.show { opacity:1; transform:none; }
.d1{transition-delay:.08s} .d2{transition-delay:.16s} .d3{transition-delay:.24s} .d4{transition-delay:.32s}

/* WP admin bar compensation */
body.admin-bar #nav { top: 32px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar #nav { top: 46px !important; }
}

/* ── Thematic section backgrounds (SMS / signal motif) ── */

/* Dot grid — white content sections (mạng lưới người nhận) */
section.bg-white {
  background-image: radial-gradient(circle, rgba(0,77,216,.055) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Signal rings — mist sections (sóng SMS lan tỏa) */
section[style*="var(--mist)"] {
  background-image:
    radial-gradient(ellipse 160px 160px at 0% 50%,  rgba(0,179,156,.07) 0%, transparent 100%),
    radial-gradient(ellipse 160px 160px at 100% 50%, rgba(0,179,156,.07) 0%, transparent 100%),
    radial-gradient(ellipse 100px 100px at 50% 100%, rgba(0,77,216,.05)  0%, transparent 100%) !important;
}

/* ── Service aside card (hero — all pages) ── */
.service-card {
  background:#fff; border:1px solid var(--rule);
  border-radius:14px; overflow:hidden; min-width:230px;
}
.service-card-label {
  font-size:.58rem; font-weight:700; letter-spacing:.14em; color:var(--stone);
  padding:14px 18px; border-bottom:1px solid var(--rule); text-transform:uppercase;
}
.hero-aside-link {
  font-size:.85rem; font-weight:500; color:var(--dark);
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 18px; border-bottom:1px solid var(--rule);
  transition:background .12s,color .12s; text-decoration:none;
}
.hero-aside-link:hover { background:var(--mist); color:var(--teal); }
.hero-aside-link .aside-num {
  font-size:.58rem; font-weight:600; color:#D1D5DB; letter-spacing:.06em;
  margin-right:9px; transition:color .12s;
}
.hero-aside-link:hover .aside-num { color:var(--teal); opacity:.5; }
.hero-aside-link .aside-arrow { font-size:.7rem; color:#D1D5DB; transition:color .12s,transform .12s; }
.hero-aside-link:hover .aside-arrow { color:var(--teal); transform:translateX(3px); }
.glass-card {
  background:rgba(255,255,255,.97) !important;
  border:1px solid rgba(255,255,255,.25) !important;
  box-shadow:0 8px 40px rgba(0,0,0,.35),0 1px 0 rgba(255,255,255,.12) inset;
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
}



/* ── Trust Bar — service pages ── */
.trust-bar { background:#F7F9FC; border-bottom:1px solid var(--rule); }
.trust-bar__label {
  text-align:center; font-size:.6875rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--stone);
  margin-bottom:1.25rem;
}
.trust-bar__chips { display:flex; flex-wrap:wrap; justify-content:center; gap:.625rem; margin-bottom:1rem; }
.trust-chip {
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.375rem 1rem; border-radius:99px;
  background:#fff; border:1px solid var(--rule);
  font-size:.8125rem; font-weight:600; color:var(--dark); white-space:nowrap;
}
.trust-bar__stats {
  display:flex; flex-wrap:wrap; justify-content:center;
  align-items:center; gap:.375rem 1.5rem;
  font-size:.8125rem; color:var(--stone);
}
.trust-bar__stats strong { color:var(--dark); font-weight:700; }
.trust-bar__stats .sep { color:var(--rule); }
.trust-logo {
  display:inline-flex; align-items:center; justify-content:center;
  padding:.375rem .875rem; border-radius:99px;
  background:#fff; border:1px solid var(--rule);
}
.trust-logo img { filter:none; opacity:1; display:block; }

/* ── Client cards — homepage social proof ── */
.client-card {
  display:inline-flex; align-items:center; gap:.625rem;
  padding:.5rem 1.25rem; border-radius:10px;
  background:#fff; border:1px solid var(--rule);
  box-shadow:0 1px 3px rgba(10,22,40,.06);
}
.client-card__dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.client-card__name { font-size:.875rem; font-weight:700; color:var(--dark); }
.client-card__tag {
  font-size:.6875rem; font-weight:600; padding:.15rem .5rem;
  border-radius:99px; background:var(--mist); color:var(--teal);
}

/* ── Testimonial card ── */
.testimonial-card {
  background:var(--mist); border-radius:16px; padding:2rem 2.5rem;
  border:1px solid rgba(0,179,156,.15);
}
.testimonial-card__quote {
  font-size:1.0625rem; line-height:1.8; color:var(--dark);
  font-style:italic; margin-bottom:1.25rem; font-weight:500;
}
.testimonial-card__name { font-size:.9375rem; font-weight:700; color:var(--dark); }
.testimonial-card__role { font-size:.8125rem; color:var(--stone); margin-top:.2rem; }

/* ── Contextual images in blog content ── */
.article-content .context-image {
  margin: 2.25rem 0 2.5rem;
}
.article-content .context-image img {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--rule);
  object-fit: cover;
}
.article-content .context-image figcaption {
  margin-top: .65rem;
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--stone);
}

/* ── Logo cell — client grid ── */
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  min-height: 80px;
}

/* ── Logo grid (static) ── */
.logo-ticker {
  overflow: hidden;
}
.logo-ticker__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
}
.logo-ticker img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  flex-shrink: 0;
}
.logo-ticker .brand-chip {
  font-size: .875rem;
  font-weight: 800;
  color: #8A97A6;
  white-space: nowrap;
  letter-spacing: .01em;
  flex-shrink: 0;
  padding: .35rem .9rem;
}
.logo-ticker .sep {
  width: 1px;
  height: 28px;
  background: var(--rule);
  flex-shrink: 0;
}

/* ── Section background patterns ── */

/* Pattern: dot grid (teal) — dùng cho sections nền nhạt */
.bg-dots {
  background-image: radial-gradient(circle at center, rgba(0,179,156,.18) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Pattern: diagonal signal lines (navy) — dùng cho sections nền trắng */
.bg-signal {
  background-image:
    repeating-linear-gradient(-55deg, transparent 0, transparent 29px, rgba(0,77,216,.035) 29px, rgba(0,77,216,.035) 30px);
}

/* Pattern: network nodes (dark) — dùng cho nền tối */
.bg-nodes {
  background-image:
    radial-gradient(circle at center, rgba(0,179,156,.22) 1.5px, transparent 1.5px),
    radial-gradient(circle at center, rgba(0,77,216,.13) 1px, transparent 1px);
  background-size: 56px 56px, 28px 28px;
  background-position: 0 0, 14px 14px;
}

/* Pattern: chat bubbles SVG (for FAQ, white bg) */
.bg-bubbles {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Crect x='6' y='8' width='34' height='22' rx='6' fill='none' stroke='%2300B39C' stroke-width='.8' opacity='.09'/%3E%3Cpath d='M10 30 L6 38 L16 30' fill='none' stroke='%2300B39C' stroke-width='.8' opacity='.09'/%3E%3Crect x='52' y='48' width='38' height='24' rx='6' fill='none' stroke='%23004DD8' stroke-width='.8' opacity='.07'/%3E%3Cpath d='M82 72 L86 80 L78 72' fill='none' stroke='%23004DD8' stroke-width='.8' opacity='.07'/%3E%3C/svg%3E");
  background-size: 96px 96px;
}


/* ═══════════════════════════════════════════════
   EMAGAZINE — Single blog post styles
   ═══════════════════════════════════════════════ */

/* ── Hero ── */
.article-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0d2255 60%, #102b6e 100%);
  position: relative;
  overflow: hidden;
  padding: 100px 24px 72px;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 600px 400px at 80% -10%, rgba(0,179,156,.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 10% 90%,  rgba(0,77,216,.18) 0%, transparent 70%);
  pointer-events: none;
}
.article-hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.article-hero__breadcrumb a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.article-hero__breadcrumb a:hover { color: var(--teal); }
.article-hero__breadcrumb span { color: rgba(255,255,255,.25); }

.article-hero__badge {
  display: inline-block;
  background: rgba(0,179,156,.2);
  border: 1px solid rgba(0,179,156,.35);
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.article-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.article-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 28px;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
}
.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-hero__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  margin: 0 10px;
}

/* ── Article layout — content centered, TOC floats right ── */
.article-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  position: relative;
}

/* ── TOC sidebar — desktop only ── */
.article-toc {
  display: none;
}
@media (min-width: 1200px) {
  .article-toc {
    display: block;
    position: absolute;
    left: calc(100% + 48px);
    top: 60px;
    bottom: 80px;
    width: 232px;
  }
  .article-toc__inner {
    position: sticky;
    top: 96px;
  }
}

/* ── TOC mobile — accordion sticky ── */
.toc-mobile {
  display: block;
  margin-bottom: 32px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 64px;
  z-index: 400;
  background: #fff;
  box-shadow: 0 2px 12px rgba(10,22,40,.07);
}
@media (min-width: 1200px) {
  .toc-mobile { display: none; }
}
.toc-mobile__toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  cursor: pointer;
  border: none; width: 100%; text-align: left;
  gap: 8px;
}
.toc-mobile__toggle-label {
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--stone);
}
.toc-mobile__toggle-current {
  font-size: .8125rem; font-weight: 600; color: var(--dark);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: left;
}
.toc-mobile__chevron {
  flex-shrink: 0; color: var(--stone);
  transition: transform .25s ease;
}
.toc-mobile.is-open .toc-mobile__chevron { transform: rotate(180deg); }
.toc-mobile__body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  border-top: 1px solid var(--rule);
  background: #FAFAFA;
}
.toc-mobile.is-open .toc-mobile__body { max-height: 60vh; overflow-y: auto; }
.toc-mobile__nav {
  display: flex; flex-direction: column;
  padding: 8px;
}
.toc-mobile__nav .toc-link {
  font-size: .8125rem; padding: 9px 12px;
}
.article-toc__inner {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
}
.article-toc__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.article-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-link {
  display: block;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--stone);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.toc-link:hover {
  color: var(--dark);
  background: var(--mist);
}
.toc-link--active {
  color: var(--teal) !important;
  background: rgba(0,179,156,.07) !important;
  border-left-color: var(--teal) !important;
  font-weight: 600;
}

/* ── Main content column ── */
.article-main {
  width: 100%;
  min-width: 0;
}

/* ── Article content typography ── */
.article-content {
  font-size: 18px;
  line-height: 1.9;
  color: var(--dark);
}

/* H1 trong content = trùng với hero title → ẩn đi */
.article-content h1 { display: none !important; }

/* Headings */
.article-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  border-left: 4px solid var(--teal);
  padding-left: 16px;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 2.25rem;
  margin-bottom: .9rem;
  line-height: 1.4;
}
.article-content h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-top: 1.75rem;
  margin-bottom: .6rem;
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1.5rem;
  font-size: inherit !important; /* override Gutenberg inline font-size */
}

/* Bold */
.article-content strong {
  font-weight: 700;
}

/* Links */
.article-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,77,216,.3);
  transition: color .15s, text-decoration-color .15s;
}
.article-content a:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

/* Lists */
.article-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.article-content ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .6rem;
  font-size: inherit !important;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.article-content ol {
  padding-left: 0;
  list-style: none;
  counter-reset: ol-counter;
  margin-bottom: 1.5rem;
}
.article-content ol li {
  counter-increment: ol-counter;
  position: relative;
  padding-left: 2rem;
  margin-bottom: .65rem;
}
.article-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 600;
  font-size: .95rem;
}

/* Nested lists */
.article-content ul ul, .article-content ol ol,
.article-content ul ol, .article-content ol ul {
  margin-top: .4rem;
  margin-bottom: .4rem;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 2rem 0;
  padding: 1.25rem 2rem;
  background: var(--mist);
  border-radius: 0 10px 10px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.75;
}
.article-content blockquote p { margin-bottom: 0; }
.article-content blockquote cite {
  display: block;
  margin-top: .75rem;
  font-size: .85rem;
  font-style: normal;
  color: var(--stone);
  font-weight: 600;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  font-size: .9rem;
  box-shadow: 0 1px 3px rgba(10,22,40,.08);
}
.article-content th {
  background: var(--dark);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.article-content td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.article-content tr:nth-child(even) td { background: #f8fafc; }
.article-content tr:hover td { background: var(--mist); transition: background .12s; }
.article-content tr:last-child td { border-bottom: none; }

/* Code */
.article-content code {
  background: #f1f5f9;
  color: var(--navy);
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: .88em;
  padding: 2px 7px;
  border-radius: 4px;
}
.article-content pre {
  background: var(--dark);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: .88rem;
  line-height: 1.65;
}
.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* Horizontal rule */
.article-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Images (Gutenberg wp:image) ── */
.article-content figure.wp-block-image {
  max-width: 900px;
  margin: 2.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10,22,40,.1);
}
.article-content figure.wp-block-image img {
  width: 100%;
  height: auto;
  display: block;
}
.article-content figure.wp-block-image figcaption {
  display: block;
  text-align: center;
  font-size: .82rem;
  font-style: italic;
  color: var(--stone);
  padding: 10px 16px;
  background: #f8fafc;
  line-height: 1.5;
}
/* Breakout images beyond content column when there is no desktop TOC */
@media (min-width: 900px) and (max-width: 1199px) {
  .article-content figure.wp-block-image.size-large {
    max-width: 900px;
    margin-left: calc((900px - 100%) / -2);
    margin-right: calc((900px - 100%) / -2);
  }
}

@media (min-width: 1200px) {
  .article-content figure.wp-block-image,
  .article-content figure.wp-block-image.size-large {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ── Callout / Notice boxes ── */
.article-content .wp-block-group.callout,
.article-content .notice,
.article-content .callout {
  background: var(--mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
}
.article-content .wp-block-group.callout p,
.article-content .notice p,
.article-content .callout p {
  margin-bottom: 0;
}

/* ── Gutenberg group / generic blocks ── */
.article-content .wp-block-group {
  margin: 1.5rem 0;
}
.article-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ── Nguồn tham khảo (outbound references) ── */
.article-content .external-refs {
  margin: 2.5rem 0 1.5rem;
  padding: 20px 24px;
  background: #F8FAFC;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
}
.article-content .external-refs h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 12px !important;
  border: none !important;
  padding: 0 !important;
}
.article-content .external-refs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.article-content .external-refs li {
  padding: 0 !important;
  margin: 0 !important;
}
.article-content .external-refs li::before { display: none !important; }
.article-content .external-refs a {
  font-size: .875rem;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color .15s;
}
.article-content .external-refs a::after {
  content: '↗';
  font-size: .75rem;
  opacity: .5;
}
.article-content .external-refs a:hover { color: var(--teal); }

/* ── CTA block ── */
.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--dark) 0%, #102b6e 100%);
  border-radius: 16px;
  padding: 32px 36px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 300px 200px at 100% 50%, rgba(0,179,156,.15) 0%, transparent 70%);
  pointer-events: none;
}
.article-cta__icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: rgba(0,179,156,.15);
  border: 1px solid rgba(0,179,156,.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.article-cta__text {
  flex: 1;
  min-width: 180px;
}
.article-cta__heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.article-cta__sub {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
}
.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(0,179,156,.35);
  position: relative;
}
.article-cta__btn:hover {
  background: #00967f;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0,179,156,.45);
}

/* ── Post navigation ── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.article-nav__prev { justify-self: start; }
.article-nav__next { justify-self: end; }
.article-nav__back { justify-self: center; }

.article-nav__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  transition: border-color .15s, background .15s;
  max-width: 260px;
}
.article-nav__link:hover {
  border-color: var(--teal);
  background: var(--mist);
}
.article-nav__link--next { align-items: flex-end; text-align: right; }
.article-nav__dir {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
}
.article-nav__link--next .article-nav__dir { flex-direction: row-reverse; }
.article-nav__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav__back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--stone);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.article-nav__back-link:hover {
  color: var(--teal);
  background: var(--mist);
}

/* ── Mobile responsive ── */
@media (max-width: 767px) {
  .article-hero { padding: 80px 20px 52px; }
  .article-layout { padding: 36px 20px 60px; }
  .article-content { font-size: 16px; }
  .article-content h2 { margin-top: 2.25rem; }
  .article-cta { padding: 24px 20px; }
  .article-cta__icon { display: none; }
  .article-nav {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .article-nav__prev, .article-nav__next, .article-nav__back {
    justify-self: stretch;
  }
  .article-nav__link { max-width: 100%; }
  .article-nav__link--next { align-items: flex-start; text-align: left; }
  .article-nav__link--next .article-nav__dir { flex-direction: row; }
  .article-content figure.wp-block-image.size-large {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
    max-width: calc(100% + 40px);
  }
}
