/* ==========================================================================
   REDMARKER Blog — shared styles for /blog index and article pages.
   Loaded alongside styles.css; all tokens reused from :root in styles.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reading progress bar (article pages)
   -------------------------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff3333 0%, var(--primary-color) 100%);
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* --------------------------------------------------------------------------
   Blog hero
   -------------------------------------------------------------------------- */
.blog-hero {
  padding: var(--page-inner-lead-pad-y);
  /* Extra offset below the sticky nav so the lead doesn’t feel tight */
  padding-top: calc(
    var(--page-hero-pad-top) - var(--page-content-pad-top-reduction) + 2.5rem
  );
  background: radial-gradient(
      1200px 600px at 75% -10%,
      rgba(37, 99, 235, 0.18),
      transparent 60%
    ),
    radial-gradient(900px 500px at 5% 10%, rgba(255, 51, 51, 0.12), transparent 60%),
    var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.blog-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.blog-hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3333;
  box-shadow: 0 0 12px rgba(255, 51, 51, 0.6);
}
.blog-hero__wordmark {
  white-space: nowrap;
}
.blog-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.blog-hero__subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Search + filter bar
   -------------------------------------------------------------------------- */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 20px;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.blog-filter {
  appearance: none;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}
.blog-filter:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.blog-filter[aria-pressed="true"] {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}
.blog-search {
  position: relative;
  flex: 0 1 320px;
  min-width: 220px;
}
.blog-search input {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}
.blog-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.blog-search input:focus {
  border-color: var(--primary-color);
  outline: none;
  background: #141a30;
}
.blog-search__icon {
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Featured post
   -------------------------------------------------------------------------- */
.blog-featured {
  max-width: 1200px;
  margin: 0 auto 3.5rem;
  padding: 0 20px;
}
.blog-featured__card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(255, 51, 51, 0.04));
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-featured__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}
.blog-featured__media {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: #0c1224;
  order: 2;
}
.blog-featured__media img,
.blog-featured__media .blog-illus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Same hero asset as the article, inset so it reads smaller than full-bleed on the listing */
.blog-featured__media.blog-summary-hero-thumb,
.blog-card__media.blog-summary-hero-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.35rem, 1.5vw, 1rem);
}
.blog-featured__media.blog-summary-hero-thumb img,
.blog-card__media.blog-summary-hero-thumb img {
  width: auto;
  max-width: min(150%, 560px);
  max-height: 150%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.5);
}
.blog-card__media.blog-summary-hero-thumb--compact {
  padding: clamp(0.45rem, 1.5vw, 1.05rem);
}
.blog-card__media.blog-summary-hero-thumb--compact img {
  max-width: min(128%, 460px);
  max-height: 122%;
  box-shadow: 0 11px 38px rgba(0, 0, 0, 0.47);
}
.blog-featured__body {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-featured__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 51, 51, 0.12);
  color: #ff7070;
  border: 1px solid rgba(255, 51, 51, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-self: flex-start;
}
.blog-featured__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.blog-featured__excerpt {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}
.blog-featured__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
  .blog-featured__card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
  .blog-featured__media {
    order: 1;
  }
  .blog-featured__body {
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   Posts grid
   -------------------------------------------------------------------------- */
.blog-grid-section {
  padding: 0 0 5rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 1rem;
  border: 1px dashed var(--border-color);
  border-radius: 16px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
}
.blog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1224;
  position: relative;
}
.blog-card__media img,
.blog-card__media .blog-illus {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__media img,
.blog-card:hover .blog-card__media .blog-illus {
  transform: scale(1.03);
}
.blog-card__tag {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  padding: 0.25rem 0.625rem;
  background: rgba(10, 14, 26, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.blog-card__body {
  flex: 1;
  padding: 1.25rem 1.375rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.blog-card__title {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.blog-card__excerpt {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}
.blog-card__meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
}
.blog-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

/* SVG illustration fallbacks */
.blog-illus {
  display: block;
}
.blog-illus--maths {
  background: linear-gradient(135deg, #0f1735 0%, #1f2550 100%);
}
.blog-illus--teachers {
  background: linear-gradient(135deg, #0e1d2a 0%, #1b3a4a 100%);
}
.blog-illus--parents {
  background: linear-gradient(135deg, #2a0e1b 0%, #4a1b25 100%);
}
.blog-illus--product {
  background: linear-gradient(135deg, #0a1226 0%, #1e2a52 100%);
}
.blog-illus--edtech {
  background: linear-gradient(135deg, #0f2b1a 0%, #1e4a33 100%);
}

/* --------------------------------------------------------------------------
   Newsletter CTA
   -------------------------------------------------------------------------- */
.blog-newsletter {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(255, 51, 51, 0.08) 100%),
    var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}
.blog-newsletter h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}
.blog-newsletter p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.blog-newsletter__form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
}
.blog-newsletter__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.blog-newsletter__form input[type="email"] {
  flex: 1 1 260px;
  max-width: 360px;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
}
.blog-newsletter__form input[type="email"]:focus {
  border-color: var(--primary-color);
  outline: none;
}
.blog-newsletter__btn-sub,
.blog-newsletter__btn-unsub {
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    filter 0.2s,
    transform 0.1s;
}
.blog-newsletter__btn-sub {
  color: #fff;
  border: none;
  background: #2563eb;
}
.blog-newsletter__btn-sub:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.blog-newsletter__btn-unsub {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
.blog-newsletter__btn-unsub:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
  transform: translateY(-1px);
}
.blog-newsletter__btn-sub:disabled,
.blog-newsletter__btn-unsub:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.blog-newsletter__note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.blog-newsletter__status {
  margin-top: 0.875rem;
  min-height: 1.25em;
  font-size: 0.9375rem;
  color: #7dd29f;
}

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */
.article-page {
  padding: var(--page-inner-lead-pad-y);
  padding-top: calc(
    var(--page-hero-pad-top) - var(--page-content-pad-top-reduction) + 2.5rem
  );
  background: var(--bg-dark);
}
.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.article-breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.article-breadcrumbs a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
.article-breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.3);
}
.article-header {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.article-header__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 51, 51, 0.12);
  color: #ff7070;
  border: 1px solid rgba(255, 51, 51, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.article-header h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.article-header__lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.6;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.625rem 1rem;
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.article-meta__author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.article-meta__avatar {
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--logo-red);
  display: inline-block;
  flex-shrink: 0;
}
.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.article-hero {
  max-width: 1040px;
  margin: 0 auto 3rem;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: #0c1224;
  border: 1px solid var(--border-color);
}

/* Tighter viewBox + matching max-width keeps the same on-screen scale as 1040×520 full-bleed art. */
.article-hero--inset {
  max-width: min(var(--article-hero-inset-max, 905px), 100%);
}

.article-hero img,
.article-hero svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px) 240px;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
  justify-content: center;
}
@media (max-width: 1080px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-toc,
  .article-side {
    display: none;
  }
}

.article-toc {
  position: sticky;
  top: 6rem;
  padding: 1.25rem 1rem;
  border-left: 1px solid var(--border-color);
  font-size: 0.875rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
}
.article-toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  display: block;
  padding: 0.125rem 0;
  transition: color 0.15s;
  line-height: 1.4;
}
.article-toc a:hover,
.article-toc a.is-active {
  color: var(--text-primary);
}
.article-toc a.is-active {
  color: #ff7070;
  font-weight: 600;
}
.article-toc li.toc-h3 a {
  padding-left: 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.article-side {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
}
.article-share {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-share__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.25rem;
}
.article-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font: inherit;
}
.article-share__btn:hover {
  background: #1f2644;
  border-color: rgba(255, 255, 255, 0.22);
}
.article-share__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Long-form typography */
.article-content {
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}
.article-content > * + * {
  margin-top: 1.25rem;
}
.article-content h2 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 6rem;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  scroll-margin-top: 6rem;
}
.article-content p,
.article-content ul,
.article-content ol {
  color: rgba(255, 255, 255, 0.88);
}
.article-content p strong,
.article-content li strong {
  color: var(--text-primary);
  font-weight: 700;
}
.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}
.article-content li + li {
  margin-top: 0.5rem;
}
.article-content a {
  color: #7aa9ff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-content a:hover {
  color: #a7c4ff;
}
.article-content blockquote {
  border-left: 3px solid #ff3333;
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.6;
}
.article-content figure {
  margin: 2rem 0;
}
.article-content figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  display: block;
}
.article-content figcaption {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.625rem;
  text-align: center;
}

.article-callout {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(255, 51, 51, 0.06));
  border: 1px solid rgba(122, 169, 255, 0.28);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.article-callout__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7aa9ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.375rem;
}
.article-callout p {
  color: var(--text-primary) !important;
  margin: 0;
  line-height: 1.6;
}

.article-key-takeaways {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.article-key-takeaways h3 {
  margin-top: 0 !important;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}
.article-key-takeaways ul {
  margin-top: 0.75rem !important;
  padding-left: 1.125rem;
}
.article-key-takeaways li {
  color: var(--text-primary);
}

.article-inline-cta {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.article-inline-cta h3 {
  margin: 0 0 0.25rem 0 !important;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}
.article-inline-cta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.article-inline-cta__body {
  flex: 1 1 320px;
}
.article-inline-cta__btn {
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  border: 2px solid rgba(20, 184, 166, 0.4);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s;
}
/* Beat .article-content a (blue + underline); keep logo wordmark red + white on button */
.article-content a.article-inline-cta__btn,
.article-content a.article-inline-cta__btn:hover {
  color: #fff;
  text-decoration: none;
}
.article-content a.article-inline-cta__btn .logo-red {
  color: var(--logo-red);
}
.article-content a.article-inline-cta__btn .logo-marker {
  color: #fff;
}
.article-inline-cta__btn:hover {
  background: var(--primary-light, #818cf8);
  color: #fff;
}
.article-inline-cta__btn:focus,
.article-inline-cta__btn:focus-visible {
  outline: 2px solid #ff3333;
  outline-offset: 2px;
}

/* Author bio */
.article-author {
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}
.article-author__avatar {
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--logo-red);
  display: inline-block;
}
.article-author__name {
  font-weight: 700;
  color: var(--text-primary);
}
.article-author__bio {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.125rem;
}

/* Related posts */
.article-related {
  max-width: 1200px;
  margin: 5rem auto 0;
  padding: 0 20px;
}
.article-related h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

/* Back to blog link */
.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.blog-back:hover {
  color: var(--text-primary);
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .article-content {
    font-size: 1rem;
  }
  .blog-newsletter {
    padding: 1.5rem;
    margin: 0 20px 3rem;
  }
}
