/* ================================================================
   blog-detail.css — Single Blog Post Page
   ================================================================ */

.blog-detail-page { background: #f1f5fb; }

/* ── Reuse sidebar styles from blog.css ── */
.blog-detail-page .blog-widget,
.blog-detail-page .blog-widget__title,
.blog-detail-page .blog-search,
.blog-detail-page .recent-posts,
.blog-detail-page .recent-post,
.blog-detail-page .recent-post__img,
.blog-detail-page .recent-post__info,
.blog-detail-page .recent-post__title,
.blog-detail-page .recent-post__date,
.blog-detail-page .sidebar-cats,
.blog-detail-page .sidebar-cat,
.blog-detail-page .sidebar-tags,
.blog-detail-page .sidebar-tag,
.blog-detail-page .post-cat,
.blog-detail-page .post-cat--epoxy,
.blog-detail-page .post-cat--polyaspartic,
.blog-detail-page .post-cat--diy,
.blog-detail-page .post-cat--prep,
.blog-detail-page .post-cat--comparison,
.blog-detail-page .post-cat--maintenance,
.blog-detail-page .post-cat--commercial,
.blog-detail-page .post-card,
.blog-detail-page .post-card__img-wrap,
.blog-detail-page .post-card__img,
.blog-detail-page .post-card__body,
.blog-detail-page .post-card__title,
.blog-detail-page .post-card__excerpt,
.blog-detail-page .post-card__btn { }
/* All these use styles from blog.css which is NOT linked here,
   so we redefine needed ones below */

/* ================================================================
   BREADCRUMB
   ================================================================ */
.bd-breadcrumb {
  margin-top: 85px;
  background: #fff;
  border-bottom: 1px solid #e1eaf4;
}
.bd-breadcrumb__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0;
  font-size: .83rem;
  flex-wrap: wrap;
}
.bd-breadcrumb__inner a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity .2s;
}
.bd-breadcrumb__inner a:hover { opacity: .75; }
.bd-breadcrumb__inner svg { width: 13px; height: 13px; color: #94a3b8; flex-shrink: 0; }
.bd-breadcrumb__inner span { color: #64748b; }

/* ================================================================
   ARTICLE HERO — vibrant image header
   ================================================================ */
.article-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 70px 0 0 0;
}

/* Background image */
.article-hero__img {
  position: absolute;
  inset: 0;
}
.article-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Vibrant multi-layer overlay */
.article-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(1,94,160,.82) 0%, rgba(5,13,30,.0) 55%),
    linear-gradient(to top, rgba(5,13,30,.95) 0%, rgba(5,13,30,.3) 55%, transparent 100%);
}

/* Accent glow spot */
.article-hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 8% 50%, rgba(57,173,255,.25) 0%, transparent 70%);
}

/* Dot grid texture */
.article-hero__overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.article-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 2.2rem 0;
  max-width: 800px;
  width: 100%;
  text-align: left;
}

.article-hero__content .post-cat {
  display: inline-block;
  margin-bottom: .75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.article-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  color: #fff;
  line-height: 1.08;
  margin: 0;
  letter-spacing: .02em;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

/* Post category badge styles (same as blog.css but scoped here) */
.post-cat {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 4px;
}
.post-cat--epoxy     { background: #dbeafe; color: #1d4ed8; }
.post-cat--polyaspartic { background: #ede9fe; color: #6d28d9; }
.post-cat--diy       { background: #dcfce7; color: #15803d; }
.post-cat--prep      { background: #fef9c3; color: #92400e; }
.post-cat--comparison { background: #ffedd5; color: #c2410c; }
.post-cat--maintenance { background: #d1fae5; color: #065f46; }
.post-cat--commercial { background: #fce7f3; color: #be185d; }

/* ================================================================
   ARTICLE LAYOUT
   ================================================================ */
.article-main { padding: 3rem 0 4rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ================================================================
   ARTICLE CONTENT
   ================================================================ */
.article-content {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 3rem;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Intro */
.article-intro {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.75;
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f1f5f9;
  font-weight: 400;
}

/* Headings */
.article-h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--dark);
  margin: 2.2rem 0 1rem;
  letter-spacing: .02em;
  padding-top: .5rem;
}
.article-h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.5rem 0 .6rem;
}

/* Body text */
.article-content p {
  font-size: .96rem;
  color: #475569;
  line-height: 1.75;
  margin: 0 0 1rem;
}

/* Lists */
.article-list {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.article-list li {
  font-size: .96rem;
  color: #475569;
  line-height: 1.65;
  padding-left: .25rem;
}
.article-list--check {
  list-style: none;
  padding-left: 0;
}
.article-list--check li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding-left: 0;
}
.article-list--check li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: .25rem;
}

/* Callout boxes */
.article-callout {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  font-size: .93rem;
  line-height: 1.65;
  align-items: flex-start;
}
.article-callout__icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.article-callout__icon svg { width: 18px; height: 18px; }
.article-callout--info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e40af;
}
.article-callout--info .article-callout__icon { background: #dbeafe; }
.article-callout--info .article-callout__icon svg { stroke: #3b82f6; }
.article-callout--tip {
  background: #fefce8;
  border-left: 4px solid #eab308;
  color: #713f12;
}
.article-callout--tip .article-callout__icon { background: #fef9c3; }
.article-callout--tip .article-callout__icon svg { stroke: #ca8a04; fill: #ca8a04; }
.article-callout--warning {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  color: #7c2d12;
}
.article-callout--warning .article-callout__icon { background: #ffedd5; }
.article-callout--warning .article-callout__icon svg { stroke: #f97316; }

/* In-article image */
.article-img-block { margin: 2rem 0; }
.article-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/8;
}
.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-img-caption {
  font-size: .8rem;
  color: #94a3b8;
  margin: .6rem 0 0;
  text-align: center;
  font-style: italic;
}

/* Numbered steps */
.article-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.article-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--blue);
}
.article-step__num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--blue);
  line-height: 1;
  min-width: 40px;
  letter-spacing: .02em;
  margin-top: .15rem;
}
.article-step__body h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .35rem;
}
.article-step__body p {
  font-size: .88rem;
  color: #475569;
  margin: 0;
  line-height: 1.6;
}

/* Pull quote */
.article-quote {
  margin: 2rem 0;
  padding: 1.8rem 2rem;
  background: linear-gradient(135deg, #050d1e 0%, #0a2340 100%);
  border-radius: 14px;
  position: relative;
}
.article-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--blue);
  line-height: 1;
  opacity: .6;
}
.article-quote p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.9);
  line-height: 1.65;
  font-style: italic;
  margin: 0 0 .75rem !important;
}
.article-quote cite {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-style: normal;
}

/* Coating system grid */
.article-system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.system-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.4rem;
  transition: border-color .2s, box-shadow .2s;
}
.system-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(1,94,160,.1); }
.system-card__num {
  font-family: var(--font-serif);
  font-size: .85rem;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.system-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .5rem;
}
.system-card p {
  font-size: .83rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 .8rem !important;
}
.system-card__thickness {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  background: var(--blue-l);
  color: var(--blue);
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* Tags */
.article-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}
.article-tags__label {
  font-size: .8rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sidebar-tag {
  font-size: .78rem;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  padding: .35rem .8rem;
  border-radius: 20px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all .2s;
}
.sidebar-tag:hover {
  color: var(--blue);
  background: var(--blue-l);
  border-color: rgba(1,94,160,.2);
}

/* Author bio */
.author-bio {
  display: flex;
  gap: 1.4rem;
  background: #f8fafc;
  border-radius: 14px;
  padding: 1.8rem;
  margin: 0 0 2rem;
  border: 1px solid #e2e8f0;
}
.author-bio__avatar {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(1,94,160,.3);
}
.author-bio__info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 .15rem;
}
.author-bio__info span {
  font-size: .78rem;
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .04em;
  display: block;
  margin-bottom: .6rem;
}
.author-bio__info p {
  font-size: .85rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 !important;
}

/* ── Share bar ── */
.share-bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.share-bar--bottom {
  margin: 0;
  padding: 1.5rem 0 0;
  border-bottom: none;
  border-top: 1px solid #f1f5f9;
}
.share-bar__label {
  font-size: .82rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: .2rem;
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform .2s, opacity .2s;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); opacity: .85; }
.share-btn svg { width: 16px; height: 16px; }
.share-btn--fb  { background: #1877f2; color: #fff; }
.share-btn--tw  { background: #000; color: #fff; }
.share-btn--li  { background: #0077b5; color: #fff; }
.share-btn--copy { background: #f1f5f9; color: #64748b; }

/* ── Post nav ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.post-nav__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.2rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.post-nav__item:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(1,94,160,.1); }
.post-nav__item--next { justify-content: flex-end; text-align: right; }
.post-nav__item svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.post-nav__item span { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .2rem; }
.post-nav__item strong { font-size: .85rem; color: var(--dark); line-height: 1.35; display: block; }

/* ================================================================
   SIDEBAR
   ================================================================ */
.article-sidebar {
  position: sticky;
  top: calc(85px + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.article-sidebar::-webkit-scrollbar { width: 4px; }
.article-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.blog-widget {
  background: #fff;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.blog-widget__title {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 1rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--blue-l);
}

/* ToC */
.toc-widget { padding-bottom: 1.2rem; }
.toc-nav {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.toc-link {
  font-size: .84rem;
  color: #64748b;
  text-decoration: none;
  padding: .45rem .7rem;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all .2s;
  line-height: 1.35;
}
.toc-link:hover { color: var(--blue); background: var(--blue-l); }
.toc-link.active {
  color: var(--blue);
  background: var(--blue-l);
  border-left-color: var(--blue);
  font-weight: 600;
}

/* CTA widget — vibrant image card */
.blog-widget--cta {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  flex-shrink: 0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(1,94,160,.22);
  border: none;
  background-image: url('images/jimmy-nilsson-masth-ohF5oGzMcUY-unsplash.jpg');
  background-size: cover;
  background-position: center;
}

/* vibrant overlay */
.blog-widget--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(1,94,160,.90) 0%, rgba(5,13,30,.97) 100%);
  z-index: 0;
}

/* dot texture */
.blog-widget--cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 0;
}

/* accent glow */
.widget-cta-inner {
  position: relative;
  z-index: 2;
  padding: 1.8rem 1.5rem;
}
.widget-cta-inner::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(57,173,255,.22) 0%, transparent 70%);
  pointer-events: none;
}

/* badge */
.widget-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(57,173,255,.15);
  border: 1px solid rgba(57,173,255,.35);
  color: #39adff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.widget-cta-badge svg { width: 11px; height: 11px; }

.blog-widget--cta h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: #fff;
  margin: 0 0 .6rem;
  line-height: 1.15;
  letter-spacing: .02em;
}

.blog-widget--cta p {
  font-size: .83rem;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
  margin: 0 0 1.4rem;
}

/* divider line */
.widget-cta-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 0 0 1.3rem;
}

.widget-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 700;
  padding: .85rem 1rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  margin-bottom: .9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.widget-cta-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.widget-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.widget-cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.widget-cta-phone svg { width: 14px; height: 14px; flex-shrink: 0; }
.widget-cta-phone:hover { color: #fff; }

/* location chips */
.widget-cta-locations {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.3rem;
}
.widget-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  padding: .25rem .6rem;
  border-radius: 20px;
}
.widget-cta-chip svg { width: 10px; height: 10px; flex-shrink: 0; }

/* Recent posts (redefine for this page) */
.recent-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.recent-post { display: flex; gap: .8rem; align-items: flex-start; }
.recent-post__img {
  width: 60px; height: 52px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0; display: block;
}
.recent-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.recent-post:hover .recent-post__img img { transform: scale(1.08); }
.recent-post__info { display: flex; flex-direction: column; gap: .25rem; }
.recent-post__title {
  font-size: .8rem; font-weight: 600; color: var(--dark);
  text-decoration: none; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.recent-post__title:hover { color: var(--blue); }
.recent-post__date { font-size: .72rem; color: #94a3b8; }

/* Categories list */
.sidebar-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.sidebar-cat {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem .4rem;
  font-size: .85rem; color: #475569;
  text-decoration: none; border-radius: 6px; transition: all .2s;
}
.sidebar-cat:hover { color: var(--blue); background: var(--blue-l); padding-left: .8rem; }
.sidebar-cat.active-cat { color: var(--blue); background: var(--blue-l); font-weight: 600; }
.sidebar-cat span {
  background: #f1f5f9; color: #64748b;
  font-size: .72rem; font-weight: 600;
  padding: .15rem .5rem; border-radius: 20px; min-width: 24px; text-align: center;
}

/* ================================================================
   RELATED POSTS
   ================================================================ */
.related-posts {
  background: #fff;
  padding: 3.5rem 0 4rem;
  border-top: 1px solid #e1eaf4;
  margin-top: 1rem;
}
.related-posts__title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--dark);
  margin: 0 0 2rem;
  letter-spacing: .02em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Post card (redefine for this page) */
.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  display: flex; flex-direction: column;
  transition: transform .28s, box-shadow .28s;
  border: 1px solid #e2e8f0;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(1,94,160,.14); }
.post-card__img-wrap {
  position: relative; text-decoration: none;
  display: block; aspect-ratio: 16/9; overflow: hidden;
}
.post-card__img { width: 100%; height: 100%; overflow: hidden; }
.post-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s;
}
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__img-wrap .post-cat {
  position: absolute; bottom: 12px; left: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.post-card__body {
  flex: 1; display: flex; flex-direction: column;
  padding: 1.4rem 1.5rem 1.5rem;
}
.post-card__title {
  font-family: var(--font-sans);
  font-size: 1rem; font-weight: 700;
  color: var(--dark); line-height: 1.4;
  margin: 0 0 .75rem; transition: color .2s;
}
.post-card:hover .post-card__title { color: var(--blue); }
.post-card__excerpt {
  font-size: .875rem; color: #64748b; line-height: 1.6;
  margin: 0 0 1.4rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__btn {
  display: inline-flex; align-items: center; gap: .45rem;
  align-self: flex-start;
  font-family: var(--font-sans); font-size: .84rem; font-weight: 600;
  color: var(--blue); text-decoration: none;
  padding: .6rem 1.2rem;
  border: 2px solid var(--blue); border-radius: 8px;
  background: transparent; transition: background .22s, color .22s, transform .2s;
  margin-top: auto;
}
.post-card__btn svg { width: 14px; height: 14px; transition: transform .22s; }
.post-card__btn:hover { background: var(--blue); color: #fff; transform: translateX(2px); }
.post-card__btn:hover svg { transform: translateX(3px); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr 260px; gap: 2rem; }
  .article-system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar {
    position: static; max-height: none; overflow-y: visible;
    display: grid; grid-template-columns: repeat(2, 1fr);
  }
  .article-content { padding: 2rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .article-hero { min-height: 260px; }
  .article-hero__title { font-size: 1.5rem; }
  .article-hero__content { padding: 2rem 0; }
  .post-nav { grid-template-columns: 1fr; }
  .article-sidebar { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .article-content { padding: 1.4rem 1.2rem; }
  .article-system-grid { grid-template-columns: 1fr; }
  .article-step { flex-direction: column; gap: .5rem; }
  .share-bar { flex-wrap: wrap; }
}

/* ================================================================
   WORDPRESS ENTRY-CONTENT TYPOGRAPHY
   Maps generic WP editor output to the article design styles
   ================================================================ */
.entry-content h2 {
  font-family: var(--font-serif, 'Bebas Neue');
  font-size: 1.7rem;
  color: #0d1b2a;
  margin: 2.2rem 0 1rem;
  letter-spacing: .02em;
  padding-top: .5rem;
  scroll-margin-top: 100px;
}
.entry-content h3 {
  font-family: var(--font-sans, 'Inter');
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 1.5rem 0 .6rem;
}
.entry-content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: #0d1b2a;
  margin: 1.2rem 0 .4rem;
}
.entry-content p {
  font-size: .96rem;
  color: #475569;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.entry-content ul li,
.entry-content ol li {
  font-size: .96rem;
  color: #475569;
  line-height: 1.65;
}
.entry-content strong { color: #1a2744; font-weight: 700; }
.entry-content a { color: var(--blue, #015ea0); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { opacity: .8; }
.entry-content blockquote {
  margin: 1.8rem 0;
  padding: 1.4rem 1.8rem;
  background: linear-gradient(135deg, #050d1e 0%, #0a2340 100%);
  border-radius: 14px;
  position: relative;
}
.entry-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px; left: 20px;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--blue, #015ea0);
  line-height: 1;
  opacity: .6;
}
.entry-content blockquote p { color: rgba(255,255,255,.9); font-style: italic; margin: 0; }
.entry-content img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption {
  font-size: .8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: .6rem;
  font-style: italic;
}
.entry-content hr {
  border: none;
  border-top: 2px solid #f1f5f9;
  margin: 2rem 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.entry-content th {
  background: var(--blue, #015ea0);
  color: #fff;
  font-weight: 600;
  padding: .75rem 1rem;
  text-align: left;
}
.entry-content td {
  padding: .65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
}
.entry-content tr:nth-child(even) td { background: #f8fafc; }
/* Gutenberg alignment classes */
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin-right: 1.5rem; }
.entry-content .alignright { float: right; margin-left: 1.5rem; }
.entry-content .wp-block-quote {
  margin: 1.8rem 0;
  padding: 1.4rem 1.8rem;
  border-left: 4px solid var(--blue, #015ea0);
  background: #f8fafc;
  border-radius: 0 12px 12px 0;
}
.entry-content .wp-block-quote p { color: #334155; font-style: italic; }

/* ── Article intro (first paragraph after hero, styled larger) ── */
.article-intro {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.75;
  margin: 0 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f1f5f9;
}

/* ── Author bio ── */
.author-bio {
  display: flex;
  gap: 1.4rem;
  background: #f8fafc;
  border-radius: 14px;
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
}
.author-bio__avatar {
  width: 64px; height: 64px; min-width: 64px;
  border-radius: 50%;
  background: var(--blue, #015ea0);
  color: #fff;
  font-family: var(--font-serif, 'Bebas Neue');
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(1,94,160,.3);
  overflow: hidden;
}
.author-bio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-bio__info h4 { font-size: 1rem; font-weight: 700; color: #0d1b2a; margin: 0 0 .15rem; }
.author-bio__info .author-bio__role {
  font-size: .78rem; color: var(--blue, #015ea0); font-weight: 600;
  letter-spacing: .04em; display: block; margin-bottom: .6rem;
}
.author-bio__info p { font-size: .85rem; color: #64748b; line-height: 1.6; margin: 0; }

/* ── Post navigation ── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.post-nav__item {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.2rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.post-nav__item:hover { border-color: var(--blue, #015ea0); box-shadow: 0 4px 14px rgba(1,94,160,.1); }
.post-nav__item--next { justify-content: flex-end; text-align: right; }
.post-nav__item svg { width: 20px; height: 20px; color: var(--blue, #015ea0); flex-shrink: 0; }
.post-nav__item span { font-size: .72rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: .2rem; }
.post-nav__item strong { font-size: .85rem; color: #0d1b2a; line-height: 1.35; display: block; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } }

/* ── Article tags ── */
.article-tags {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  margin: 2.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}
.article-tags__label {
  font-size: .8rem; font-weight: 600; color: #94a3b8;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ── ToC link ── */
.toc-nav { display: flex; flex-direction: column; gap: .1rem; }
.toc-link {
  font-size: .84rem; color: #64748b; text-decoration: none;
  padding: .45rem .7rem; border-radius: 7px;
  border-left: 2px solid transparent;
  transition: all .2s; line-height: 1.35;
}
.toc-link:hover { color: var(--blue, #015ea0); background: #e8f2fb; }
.toc-link.active {
  color: var(--blue, #015ea0); background: #e8f2fb;
  border-left-color: var(--blue, #015ea0); font-weight: 600;
}

/* ── Active sidebar category ── */
.sidebar-cat.active-cat { color: var(--blue, #015ea0); background: #e8f2fb; font-weight: 600; }

/* ── Related posts section ── */
.related-posts {
  background: #fff; padding: 3.5rem 0 4rem;
  border-top: 1px solid #e1eaf4; margin-top: 1rem;
}
.related-posts__title {
  font-family: var(--font-serif, 'Bebas Neue');
  font-size: 1.9rem; color: #0d1b2a;
  margin: 0 0 2rem; letter-spacing: .02em;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
