/**
 * Single Post — blog article with sidebar
 *
 * Layout: dark hero header → 2-column (article + sidebar)
 * Author box: medical-grade authority card with credentials, badge, trust signal
 *
 * @package Ortorodzina
 */

/* ─── Hero — split: text left / featured image right ────────────────────── */

.sp-hero {
  display: grid;
  grid-template-columns: 55fr 45fr;
  min-height: 520px;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

/* ── Left pane ─────────────────────────────────────────────────────────── */

.sp-hero__content {
  display: flex;
  align-items: center;
  /* align left edge with container content on wide viewports */
  padding: var(--space-7) var(--space-8) var(--space-7) max(var(--space-4), calc((100vw - 1320px) / 2 + var(--space-4)));
  background: linear-gradient(140deg, #fff 55%, var(--color-surface) 100%);
  position: relative;
}

/* Subtle vertical separator */
.sp-hero__content::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}

.sp-hero__inner {
  width: 100%;
  max-width: 640px;
}

/* ── Right pane: image fills completely ─────────────────────────────────── */

.sp-hero__image {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}

.sp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sp-hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface) 0%, #e5e7eb 100%);
}

/* ── Breadcrumb bar (strip above hero) ────────────────────────────────────── */

.sp-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 10px max(var(--space-4), calc((100vw - 1320px) / 2 + var(--space-4))) 10px max(var(--space-4), calc((100vw - 1320px) / 2 + var(--space-4)));
}

.sp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12.5px;
  color: var(--color-text-soft);
}

.sp-breadcrumb__home {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sp-breadcrumb__home:hover {
  color: var(--color-dark);
}

.sp-breadcrumb__sep {
  color: var(--color-border);
  margin: 0 6px;
  font-size: 14px;
  line-height: 1;
}

/* Category — last crumb; truncate long names */
.sp-breadcrumb__cat {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-dark);
  font-weight: 500;
}

/* ── Category badges ────────────────────────────────────────────────────── */

.sp-hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.sp-hero__cat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition-fast);
}

.sp-hero__cat-badge:hover {
  background: #e02d20;
  color: #fff;
}

/* ── Title ──────────────────────────────────────────────────────────────── */

.sp-hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.14;
  margin: 0 0 var(--space-6);
  letter-spacing: -0.03em;
}

/* ── Meta row ───────────────────────────────────────────────────────────── */

.sp-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.sp-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* ── Author card ────────────────────────────────────────────────────────── */

.sp-hero__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.sp-hero__author:hover {
  border-color: rgba(255, 58, 45, 0.3);
  box-shadow: 0 2px 12px rgba(255, 58, 45, 0.08);
}

/* Avatar column */
.sp-hero__author-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px var(--color-border),
    0 0 0 4px #fff;
}

.sp-hero__author-img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: none;
}

/* Green verified tick — bottom-right of avatar */
.sp-hero__author-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #14804a;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Info column */
.sp-hero__author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.sp-hero__author-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1.2;
}

.sp-hero__author-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-hero__author-credentials {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PWZ badge — right side */
.sp-hero__author-pwz {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 4px 10px;
  background: rgba(20, 128, 74, 0.08);
  color: #14804a;
  border: 1px solid rgba(20, 128, 74, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/* ─── Page layout ────────────────────────────────────────────────────────── */

.single-post-layout .container {
  padding-top: var(--space-8);
  padding-bottom: var(--space-10);
}

.sp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-8);
  align-items: start;
}

/* ─── Entry content shell ────────────────────────────────────────────────── */

.sp-entry-content {
  margin-bottom: var(--space-6);
}

/* ─── blog-post article ──────────────────────────────────────────────────── */

.blog-post {
  font-size: 16.5px;
  line-height: 1.82;
  color: var(--color-text);
}

/* ── Lead paragraph (post-header) ──────────────────────────────────────── */

.blog-post .post-header {
  margin-bottom: var(--space-2);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-accent);
}

.blog-post .post-header p {
  margin: 0 0 var(--space-3);
  font-size: 17px;
  line-height: 1.78;
  color: var(--color-dark);
}

.blog-post .post-header p:last-child {
  margin-bottom: 0;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.blog-post section {
  margin-bottom: var(--space-7);
}

.blog-post section:last-of-type {
  margin-bottom: 0;
}

/* ── H2 — section title ─────────────────────────────────────────────── */

.blog-post h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: #fff;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

/* ── H3 — sub-section ───────────────────────────────────────────────── */

.blog-post h3 {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: var(--space-6) 0 var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Small accent dot before h3 */
.blog-post h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── H4 ─────────────────────────────────────────────────────────────── */

.blog-post h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  margin: var(--space-5) 0 var(--space-2);
}

/* ── Paragraphs ─────────────────────────────────────────────────────── */

.blog-post p {
  margin: 0 0 var(--space-4);
}

.blog-post p:last-child {
  margin-bottom: 0;
}

/* ── Strong ─────────────────────────────────────────────────────────── */

.blog-post strong {
  font-weight: 700;
  color: var(--color-dark);
}

/* ── Links ──────────────────────────────────────────────────────────── */

.blog-post a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition-fast);
}

.blog-post a:hover {
  opacity: 0.75;
}

/* ── Lists ──────────────────────────────────────────────────────────── */

.blog-post ul,
.blog-post ol {
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.blog-post ul li,
.blog-post ol li {
  position: relative;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-6);
  margin-bottom: 2px;
  /* border-radius: var(--radius-sm); */
  font-size: 15.5px;
  line-height: 1.65;
  /* background: #fff; */
  /* border: 1px solid var(--color-border); */
  transition: border-color var(--transition-fast);
}

.blog-post ul li:hover,
.blog-post ol li:hover {
  border-color: rgba(255, 58, 45, 0.25);
}

/* Custom bullet */
.blog-post ul li::before {
  content: "";
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Numbered list counter */
.blog-post ol {
  counter-reset: blog-ol;
}

.blog-post ol li {
  counter-increment: blog-ol;
}

.blog-post ol li::before {
  content: counter(blog-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-accent);
  background: rgba(255, 58, 45, 0.06);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* ── Blockquote ─────────────────────────────────────────────────────── */

.blog-post blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6) var(--space-5) var(--space-7);
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 17px;
  font-style: italic;
  color: var(--color-dark);
  position: relative;
}

.blog-post blockquote::before {
  content: "\201C";
  position: absolute;
  top: var(--space-3);
  left: var(--space-4);
  font-size: 42px;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.3;
  font-style: normal;
}

.blog-post blockquote p:last-child {
  margin-bottom: 0;
}

/* ── Images ─────────────────────────────────────────────────────────── */

.blog-post img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ── Tables ─────────────────────────────────────────────────────────── */

.blog-post table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
  font-size: 14px;
}

.blog-post th,
.blog-post td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  text-align: left;
}

.blog-post th {
  background: var(--color-surface);
  font-weight: 700;
  color: var(--color-dark);
}

/* ─── FAQ block ──────────────────────────────────────────────────────────── */

.post-faq-block {
  margin: var(--space-8) 0;
  padding: var(--space-7) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.post-faq-block > h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-6);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: block;
}

.post-faq-block > h2::before {
  display: none;
}

.faq-item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-of-type {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0 0 var(--space-2);
  line-height: 1.4;
  letter-spacing: 0;
}

.faq-item h3::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0;
}

.faq-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-soft);
  padding-left: 30px; /* align with h3 text after Q badge */
}

/* ─── Post CTA block ─────────────────────────────────────────────────────── */

.post-cta {
  margin-top: var(--space-8);
  padding: var(--space-7) var(--space-7);
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Decorative watermark */
.post-cta::before {
  content: "+";
  position: absolute;
  right: -0.1em;
  bottom: -0.2em;
  font-size: clamp(120px, 20vw, 200px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.post-cta h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 var(--space-4);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  letter-spacing: -0.015em;
  display: block;
  position: relative;
  z-index: 1;
}

.post-cta h2::before {
  display: none;
}

.post-cta p {
  margin: 0 auto var(--space-4);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.post-cta p:last-child {
  margin-bottom: 0;
}

.post-cta a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 58, 45, 0.6);
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

.post-cta a:hover {
  color: var(--color-accent);
  text-decoration-color: transparent;
  opacity: 1;
}

/* ─── Tags footer ────────────────────────────────────────────────────────── */

.sp-entry-footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-7);
}

.sp-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 13px;
}

.sp-tags__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--color-text-soft);
  margin-right: 2px;
}

.sp-tags a {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.sp-tags a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* ─── Author box ─────────────────────────────────────────────────────────── */

.author-box {
  display: flex;
  gap: var(--space-6);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-7);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Subtle accent rail top-left */
.author-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.author-box__avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.author-box__avatar-frame {
  position: relative;
  display: inline-block;
}

.author-box__avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--color-accent),
    var(--shadow-sm);
}

.author-box__avatar {
  width: 96px !important;
  height: 96px !important;
  border-radius: 0 !important;
  object-fit: cover;
  border: none !important;
  display: block;
  margin: 0 !important;
}

.author-box__verified {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 24px;
  height: 24px;
  background: #14804a;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.author-box__pwz {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-success);
  background: rgba(20, 128, 74, 0.08);
  border: 1px solid rgba(20, 128, 74, 0.2);
  border-radius: 100px;
  padding: 3px 9px;
  white-space: nowrap;
}

.author-box__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.author-box__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.author-box__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 4px;
}

.author-box__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-dark);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.author-box__credentials {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0;
  font-style: italic;
}

.author-box__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 58, 45, 0.06);
  border: 1px solid rgba(255, 58, 45, 0.15);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.author-box__bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0;
}

.author-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.author-box__posts-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.author-box__posts-link:hover {
  opacity: 0.75;
}

.author-box__trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-success);
  font-weight: 500;
}

/* ─── Post navigation ────────────────────────────────────────────────────── */

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.nav-previous,
.nav-next {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition:
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sp-nav__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.sp-nav__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */

.sp-sidebar {
  position: sticky;
  top: 140px;
}

.sp-sidebar .widget {
  background: #fff;
  /* border: 1px solid var(--color-border); */
  /* border-radius: var(--radius-lg); */
  /* padding: var(--space-5); */
  margin-bottom: var(--space-5);
  /* box-shadow: var(--shadow-sm); */
}

.sp-sidebar .widget-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* .sp-sidebar .widget ul li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

.sp-sidebar .widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
} */

.sp-sidebar .widget a {
  font-size: 14px;
  font-weight: 500;
  /* color: var(--color-text); */
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sp-sidebar .widget a:hover {
  /* color: var(--color-accent); */
}

/* CTA sidebar widget — accent-bordered card */
.widget-cta {
  background: var(--color-dark) !important;
  border-color: transparent !important;
  color: #fff;
  text-align: center;
}

.widget-cta .widget-title {
  color: #fff !important;
  border-color: var(--color-accent) !important;
}

.widget-cta p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.widget-cta .button {
  width: 100%;
  justify-content: center;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .sp-layout {
    grid-template-columns: 1fr 260px;
    gap: var(--space-6);
  }
}

@media (max-width: 840px) {
  .sp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sp-hero__content {
    padding: var(--space-8) var(--space-5);
    order: 1;
  }

  .sp-hero__content::after {
    display: none;
  }

  .sp-hero__image {
    height: 320px;
    order: 0;
  }

  .sp-layout {
    grid-template-columns: 1fr;
  }

  .sp-sidebar {
    position: static;
  }

  .author-box {
    flex-direction: column;
    gap: var(--space-4);
  }

  .author-box::before {
    width: 100%;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .author-box__avatar-col {
    flex-direction: row;
    align-items: center;
  }

  .author-box__avatar {
    width: 72px !important;
    height: 72px !important;
  }

  .author-box__header {
    flex-direction: column;
    gap: var(--space-2);
  }

  .author-box__badge {
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  .sp-hero__image {
    height: 220px;
  }

  .sp-hero__content {
    padding: var(--space-6) var(--space-4);
  }

  .sp-hero__title {
    font-size: 1.5rem;
  }

  .sp-breadcrumb__current {
    max-width: 160px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .nav-next {
    text-align: left;
  }

  .author-box {
    padding: var(--space-5) var(--space-4);
  }

  .blog-post h2 {
    padding: var(--space-3) var(--space-4);
  }

  .post-faq-block {
    padding: var(--space-5) var(--space-4);
  }

  .faq-item p {
    padding-left: 0;
  }

  .post-cta {
    padding: var(--space-6) var(--space-4);
    text-align: left;
  }

  .post-cta::before {
    display: none;
  }
}
