/* ============================================================
   SEMrush-style Blog — Blog Archive & Single Post
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --smr-white: #ffffff;
  --smr-bg: #f7f8fc;
  --smr-hero-bg: #e8e4f8;
  --smr-purple: #7b2bf9;
  --smr-purple-light: #ede9fd;
  --smr-green: #1db954;
  --smr-text: #1a1a2e;
  --smr-muted: #6b7280;
  --smr-border: #e5e7eb;
  --smr-card-radius: 12px;
  --smr-font: 'Inter', 'DM Sans', sans-serif;
}

/* ============================================================
   SHARED
   ============================================================ */
.smr-blog-wrap,
.smr-single-wrap {
  font-family: var(--smr-font);
  background: var(--smr-bg);
  min-height: 100vh;
}

/* ============================================================
   BLOG ARCHIVE — HERO (Featured Post)
   ============================================================ */
.smr-hero {
  background: var(--smr-hero-bg);
  border-radius: 20px;
  padding: 44px 52px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.smr-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(123, 43, 249, .15) 0%, transparent 70%);
  pointer-events: none;
}

.smr-hero__body {
  flex: 1;
  min-width: 0;
}

.smr-hero__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.smr-hero__cats a {
  font-size: 12px;
  font-weight: 600;
  color: var(--smr-purple);
  text-decoration: underline;
  letter-spacing: .3px;
  transition: opacity .2s;
}

.smr-hero__cats a:hover {
  opacity: .7;
}

.smr-hero__cats span {
  color: var(--smr-muted);
}

.smr-hero__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--smr-text);
  line-height: 1.2;
  margin: 0 0 16px;
}

.smr-hero__title a {
  color: inherit;
  text-decoration: none;
}

.smr-hero__title a:hover {
  color: var(--smr-purple);
}

.smr-hero__excerpt {
  font-size: 15px;
  color: var(--smr-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.smr-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--smr-muted);
}

.smr-hero__meta a {
  color: var(--smr-purple);
  font-weight: 500;
  text-decoration: none;
}

.smr-hero__meta a:hover {
  text-decoration: underline;
}

.smr-hero__meta .dot {
  color: var(--smr-border);
}

.smr-hero__thumb {
  width: 340px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.smr-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.smr-hero__thumb:hover img {
  transform: scale(1.04);
}

/* wave decoration */
.smr-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg,
      var(--smr-purple) 0 4px,
      transparent 4px 8px);
  opacity: .4;
}

/* ============================================================
   BLOG ARCHIVE — CATEGORY TABS
   ============================================================ */
.smr-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.smr-cat-tabs a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--smr-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--smr-text);
  text-decoration: none;
  background: var(--smr-white);
  transition: all .2s;
}

.smr-cat-tabs a:hover,
.smr-cat-tabs a.active {
  background: var(--smr-purple);
  border-color: var(--smr-purple);
  color: var(--smr-white);
}

/* ============================================================
   BLOG ARCHIVE — SECTION HEADINGS (2-col, 3-col)
   ============================================================ */
.smr-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--smr-muted);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--smr-border);
}

/* ============================================================
   BLOG ARCHIVE — 2-COLUMN LARGE CARDS
   ============================================================ */
.smr-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.smr-card-lg {
  background: var(--smr-white);
  border-radius: var(--smr-card-radius);
  border: 1.5px solid var(--smr-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}

.smr-card-lg:hover {
  box-shadow: 0 12px 40px rgba(123, 43, 249, .12);
  transform: translateY(-4px);
}

.smr-card-lg__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.smr-card-lg__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.smr-card-lg:hover .smr-card-lg__thumb img {
  transform: scale(1.05);
}

.smr-card-lg__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.smr-card-lg__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.smr-card-lg__cats a {
  font-size: 11px;
  font-weight: 600;
  color: var(--smr-purple);
  text-decoration: none;
}

.smr-card-lg__cats a:hover {
  text-decoration: underline;
}

.smr-card-lg__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--smr-text);
  line-height: 1.3;
  margin: 0 0 10px;
}

.smr-card-lg__title a {
  color: inherit;
  text-decoration: none;
}

.smr-card-lg__title a:hover {
  color: var(--smr-purple);
}

.smr-card-lg__excerpt {
  font-size: 14px;
  color: var(--smr-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.smr-card-lg__meta {
  font-size: 12px;
  color: var(--smr-muted);
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.smr-card-lg__meta a {
  color: var(--smr-purple);
  font-weight: 500;
  text-decoration: none;
}

.smr-card-lg__meta a:hover {
  text-decoration: underline;
}

.smr-card-lg__meta .dot {
  color: var(--smr-border);
}

/* ============================================================
   BLOG ARCHIVE — 3-COLUMN SMALL CARDS
   ============================================================ */
.smr-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.smr-card-sm {
  background: var(--smr-white);
  border-radius: var(--smr-card-radius);
  border: 1.5px solid var(--smr-border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}

.smr-card-sm:hover {
  box-shadow: 0 10px 30px rgba(123, 43, 249, .1);
  transform: translateY(-3px);
}

.smr-card-sm__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.smr-card-sm__cats a {
  font-size: 11px;
  font-weight: 600;
  color: var(--smr-purple);
  text-decoration: none;
}

.smr-card-sm__cats a:hover {
  text-decoration: underline;
}

.smr-card-sm__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--smr-text);
  line-height: 1.35;
  margin: 0 0 8px;
  flex: 1;
}

.smr-card-sm__title a {
  color: inherit;
  text-decoration: none;
}

.smr-card-sm__title a:hover {
  color: var(--smr-purple);
}

.smr-card-sm__excerpt {
  font-size: 13px;
  color: var(--smr-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.smr-card-sm__meta {
  font-size: 12px;
  color: var(--smr-muted);
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.smr-card-sm__meta a {
  color: var(--smr-purple);
  font-weight: 500;
  text-decoration: none;
}

.smr-card-sm__meta a:hover {
  text-decoration: underline;
}

.smr-card-sm__meta .dot {
  color: var(--smr-border);
}

/* ============================================================
   BLOG ARCHIVE — PAGINATION
   ============================================================ */
.smr-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 48px 0 32px;
  flex-wrap: wrap;
}

.smr-pagination__load {
  display: inline-block;
  padding: 13px 36px;
  border-radius: 999px;
  border: 2px solid var(--smr-text);
  font-size: 14px;
  font-weight: 600;
  color: var(--smr-text);
  text-decoration: none;
  background: transparent;
  transition: all .22s;
}

.smr-pagination__load:hover {
  background: var(--smr-text);
  color: var(--smr-white);
}

.smr-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.smr-pagination__pages a,
.smr-pagination__pages span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--smr-text);
  border: 1.5px solid transparent;
  transition: all .2s;
}

.smr-pagination__pages a:hover {
  border-color: var(--smr-border);
  background: var(--smr-white);
}

.smr-pagination__pages .current {
  background: var(--smr-text);
  color: var(--smr-white);
  border-color: var(--smr-text);
}

/* ============================================================
   SINGLE POST — LAYOUT
   ============================================================ */
.smr-single-wrap {
  padding: 0;
}

.smr-single__header {
  background: var(--smr-bg);
  padding: 48px 0 32px;
}

.smr-single__breadcrumb {
  font-size: 12px;
  color: var(--smr-muted);
  margin-bottom: 20px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.smr-single__breadcrumb a {
  color: var(--smr-purple);
  text-decoration: none;
  font-weight: 500;
}

.smr-single__breadcrumb a:hover {
  text-decoration: underline;
}

.smr-single__breadcrumb .sep {
  color: var(--smr-border);
}

.smr-single__title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  color: var(--smr-text);
  line-height: 1.15;
  margin: 0 0 20px;
}

.smr-single__byline {
  font-size: 13px;
  color: var(--smr-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.smr-single__byline strong {
  color: var(--smr-text);
}

.smr-single__byline a {
  color: var(--smr-purple);
  font-weight: 500;
  text-decoration: none;
}

.smr-single__byline a:hover {
  text-decoration: underline;
}

.smr-single__byline .sep {
  color: var(--smr-border);
}

.smr-single__hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  margin: 32px 0 0;
}

/* ============================================================
   SINGLE POST — CONTENT + SIDEBAR LAYOUT
   ============================================================ */
.smr-single__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: flex-start;
  padding: 48px 0 64px;
}

.smr-single__content {
  min-width: 0;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
}

.smr-single__content h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--smr-text);
  margin: 40px 0 16px;
  letter-spacing: -.3px;
}

.smr-single__content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--smr-text);
  margin: 32px 0 12px;
}

.smr-single__content h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 10px;
}

.smr-single__content p {
  margin-bottom: 20px;
}

.smr-single__content a {
  color: var(--smr-purple);
  text-decoration: underline;
}

.smr-single__content ul,
.smr-single__content ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.smr-single__content li {
  margin-bottom: 6px;
}

.smr-single__content img {
  max-width: 100%;
  border-radius: 10px;
  margin: 24px 0;
}

.smr-single__content blockquote {
  border-left: 4px solid var(--smr-purple);
  background: var(--smr-purple-light);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--smr-text);
}

.smr-single__content pre,
.smr-single__content code {
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 14px;
  padding: 2px 6px;
}

.smr-single__content pre {
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

/* CTA banner inside content */
.smr-cta-banner {
  background: var(--smr-text);
  color: var(--smr-white);
  border-radius: 14px;
  padding: 28px 32px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.smr-cta-banner__text {
  font-size: 15px;
  font-weight: 600;
}

.smr-cta-banner__text p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  opacity: .7;
}

.smr-cta-banner__btn {
  display: inline-block;
  padding: 11px 26px;
  background: var(--smr-purple);
  color: var(--smr-white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}

.smr-cta-banner__btn:hover {
  opacity: .85;
}

/* Tags */
.smr-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.smr-tags a {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--smr-purple-light);
  color: var(--smr-purple);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.smr-tags a:hover {
  background: var(--smr-purple);
  color: var(--smr-white);
}

/* Author bio */
.smr-author-bio {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--smr-white);
  border: 1.5px solid var(--smr-border);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0;
}

.smr-author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.smr-author-bio__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smr-author-bio__avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--smr-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--smr-purple);
}

.smr-author-bio__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--smr-text);
  margin: 0 0 4px;
}

.smr-author-bio__desc {
  font-size: 13px;
  color: var(--smr-muted);
  line-height: 1.6;
  margin: 0;
}

/* Social share */
.smr-share {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0 8px;
  font-size: 13px;
  color: var(--smr-muted);
}

.smr-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--smr-white);
  border: 1.5px solid var(--smr-border);
  color: var(--smr-text);
  text-decoration: none;
  font-size: 13px;
  transition: all .2s;
}

.smr-share__btn:hover {
  background: var(--smr-purple);
  border-color: var(--smr-purple);
  color: var(--smr-white);
}

/* ============================================================
   SINGLE POST — SIDEBAR
   ============================================================ */
.smr-single__sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Table of Contents */
.smr-toc {
  background: var(--smr-white);
  border: 1.5px solid var(--smr-border);
  border-radius: 14px;
  padding: 24px;
}

.smr-toc__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--smr-muted);
  margin-bottom: 16px;
}

.smr-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.smr-toc__list a {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--smr-text);
  text-decoration: none;
  transition: background .2s, color .2s;
  line-height: 1.4;
}

.smr-toc__list a:hover,
.smr-toc__list a.active {
  background: var(--smr-purple-light);
  color: var(--smr-purple);
}

.smr-toc__toggle {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--smr-purple);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

/* Sidebar promo card */
.smr-promo-card {
  background: var(--smr-text);
  border-radius: 14px;
  padding: 28px 24px;
  color: var(--smr-white);
  text-align: center;
}

.smr-promo-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.smr-promo-card__desc {
  font-size: 13px;
  opacity: .7;
  line-height: 1.55;
  margin-bottom: 18px;
}

.smr-promo-card__btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--smr-purple);
  color: var(--smr-white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

.smr-promo-card__btn:hover {
  opacity: .85;
}

.smr-promo-card__trial {
  font-size: 11px;
  opacity: .5;
  margin-top: 8px;
}

/* Author sidebar card */
.smr-author-card {
  background: var(--smr-white);
  border: 1.5px solid var(--smr-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.smr-author-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.smr-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.smr-author-card__avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--smr-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--smr-purple);
}

.smr-author-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--smr-text);
  margin: 0 0 4px;
}

.smr-author-card__desc {
  font-size: 12px;
  color: var(--smr-muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   ARCHIVE — container wrapper
   ============================================================ */
.smr-blog-wrap .smr-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* ============================================================
   RESPONSIVE — Full System
   ============================================================ */

/* ── Tablet landscape: 1024px ── */
@media (max-width: 1024px) {

  /* Container */
  .smr-blog-wrap .smr-container {
    padding: 32px 20px 48px;
  }

  /* Hero */
  .smr-hero {
    flex-direction: column;
    padding: 32px 28px;
    gap: 24px;
  }

  .smr-hero__thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .smr-hero__title {
    font-size: 26px;
  }

  /* Single post: stack content + sidebar */
  .smr-single__body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 48px;
  }

  .smr-single__sidebar {
    position: static;
    /* On tablet, show sidebar in a 2-col row */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-direction: unset;
  }

  /* Full-width sidebar items */
  .smr-promo-card,
  .smr-toc {
    grid-column: 1 / -1;
  }

  /* Archive header */
  .smr-archive-header {
    padding: 32px 32px;
  }
}

/* ── Tablet portrait: 768px ── */
@media (max-width: 768px) {

  /* Container */
  .smr-blog-wrap .smr-container {
    padding: 24px 16px 40px;
  }

  /* Hero */
  .smr-hero {
    padding: 24px 20px;
    gap: 20px;
    border-radius: 14px;
  }

  .smr-hero__title {
    font-size: 22px;
  }

  .smr-hero__excerpt {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .smr-hero__meta {
    font-size: 12px;
    gap: 6px;
  }

  /* Grids: 2 cols → 1 col, 3 cols → 1 col */
  .smr-grid-2,
  .smr-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Cards */
  .smr-card-lg__title {
    font-size: 16px;
  }

  .smr-card-sm__title {
    font-size: 15px;
  }

  /* Category / tag tabs: allow horizontal scroll */
  .smr-cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
    gap: 6px;
    margin-bottom: 24px;
  }

  .smr-cat-tabs::-webkit-scrollbar {
    display: none;
  }

  .smr-cat-tabs a {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Archive header */
  .smr-archive-header {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .smr-archive-header__title {
    font-size: 24px;
  }

  .smr-archive-header__desc {
    font-size: 14px;
  }

  /* Single post header */
  .smr-single__header {
    padding: 28px 0 20px;
  }

  .smr-single__title {
    font-size: 24px;
  }

  .smr-single__byline {
    font-size: 12px;
    gap: 6px;
  }

  .smr-single__hero-img {
    max-height: 280px;
    border-radius: 10px;
    margin: 20px 0 0;
  }

  /* Single content */
  .smr-single__content {
    font-size: 15px;
  }

  .smr-single__content h2 {
    font-size: 20px;
    margin: 28px 0 12px;
  }

  .smr-single__content h3 {
    font-size: 17px;
    margin: 22px 0 10px;
  }

  /* Single sidebar: single column */
  .smr-single__sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* CTA banner */
  .smr-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  /* Author bio */
  .smr-author-bio {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  /* Pagination */
  .smr-pagination {
    flex-direction: column;
    gap: 12px;
    margin: 32px 0 20px;
  }

  .smr-pagination__pages {
    gap: 4px;
  }

  .smr-pagination__pages a,
  .smr-pagination__pages span {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Video block */
  .smr-video-block {
    border-radius: 10px;
    margin: 28px 0;
  }

  .smr-video-block__header {
    padding: 10px 14px;
    gap: 8px;
  }

  .smr-video-block__label {
    font-size: 12px;
  }

  .smr-video-block__link {
    display: none; /* hide on mobile — too cramped */
  }

  .smr-video-block__caption {
    font-size: 12px;
    padding: 10px 14px;
  }
}

/* ── Large phone: 640px ── */
@media (max-width: 640px) {

  /* 3-col grid → 2 cols on large phones */
  .smr-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Section labels */
  .smr-section-title {
    font-size: 10px;
  }

  /* Share bar */
  .smr-share {
    gap: 8px;
  }

  .smr-share__btn {
    width: 30px;
    height: 30px;
  }

  /* Tags */
  .smr-tags {
    gap: 6px;
  }

  .smr-tags a {
    font-size: 12px;
    padding: 4px 10px;
  }

  /* TOC */
  .smr-toc {
    padding: 18px;
  }

  .smr-toc__list a {
    font-size: 12px;
    padding: 5px 8px;
  }

  /* Promo card */
  .smr-promo-card {
    padding: 20px 18px;
  }

  /* Author card */
  .smr-author-card {
    padding: 16px;
  }
}

/* ── Small phone: 480px ── */
@media (max-width: 480px) {

  /* 3-col → single col on small phones */
  .smr-grid-3 {
    grid-template-columns: 1fr;
  }

  /* Hero title smaller */
  .smr-hero__title {
    font-size: 19px;
  }

  /* Hero: hide thumb on very small screens */
  .smr-hero__thumb {
    display: none;
  }

  /* Single title */
  .smr-single__title {
    font-size: 20px;
  }

  /* Card meta: wrap cleanly */
  .smr-card-lg__meta,
  .smr-card-sm__meta,
  .smr-hero__meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Reduce card padding */
  .smr-card-sm {
    padding: 16px;
  }

  .smr-card-lg__body {
    padding: 16px;
  }

  /* Load more button */
  .smr-pagination__load {
    padding: 11px 24px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  /* Breadcrumb: wrap */
  .smr-single__breadcrumb {
    font-size: 11px;
    gap: 4px;
  }

  /* Content */
  .smr-single__content h2 {
    font-size: 18px;
  }

  .smr-single__content h3 {
    font-size: 16px;
  }

  /* Archive header */
  .smr-archive-header {
    padding: 20px 16px;
  }

  .smr-archive-header__title {
    font-size: 20px;
  }
}

/* ============================================================
   ARCHIVE HEADER — Category & Tag pages
   ============================================================ */
.smr-archive-header {
  background: var(--smr-white);
  border: 1.5px solid var(--smr-border);
  border-radius: 16px;
  padding: 40px 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.smr-archive-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--smr-purple);
  border-radius: 4px 0 0 4px;
}

.smr-archive-header__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--smr-purple);
  margin-bottom: 10px;
}

.smr-archive-header__title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--smr-text);
  margin: 0 0 12px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 4px;
}

.smr-archive-header__tag-icon {
  color: var(--smr-purple);
  font-weight: 900;
}

.smr-archive-header__desc {
  font-size: 15px;
  color: var(--smr-muted);
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 640px;
}

.smr-archive-header__count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--smr-muted);
  background: var(--smr-bg);
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0;
}

/* Tag variant — purple gradient tint */
.smr-archive-header--tag {
  background: linear-gradient(135deg, var(--smr-white) 55%, var(--smr-purple-light));
}

/* Tag pill tabs — smaller font */
.smr-tag-tabs a {
  font-size: 12px;
}

@media (max-width: 768px) {
  .smr-archive-header {
    padding: 28px 24px;
  }
}

/* ============================================================
   VIDEO EMBED BLOCK — SEMrush-style
   ============================================================ */
.smr-video-block {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .14);
  background: #0f0f11;
  border: 1.5px solid rgba(255,255,255,.06);
}

/* Top label bar */
.smr-video-block__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #0f0f11;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.smr-video-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ff0000;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.smr-video-block__badge svg {
  flex-shrink: 0;
}

.smr-video-block__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smr-video-block__link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--smr-purple);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}

.smr-video-block__link:hover { opacity: .75; }

/* 16:9 responsive iframe wrapper */
.smr-video-block__player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.smr-video-block__player iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

/* Optional caption below */
.smr-video-block__caption {
  padding: 14px 20px;
  background: #0f0f11;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
  font-style: italic;
}

/* ── Lazy-load click-to-play variant ── */
.smr-video-block__thumb {
  position: relative;
  cursor: pointer;
  background: #000;
}

.smr-video-block__thumb img {
  width: 100%;
  display: block;
  opacity: .85;
  transition: opacity .25s;
}

.smr-video-block__thumb:hover img {
  opacity: .7;
}

.smr-video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(0,0,0,.75);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
  pointer-events: none;
}

.smr-video-block__thumb:hover .smr-video-play-btn {
  background: var(--smr-purple);
  transform: translate(-50%, -50%) scale(1.1);
}

.smr-video-play-btn svg {
  width: 28px; height: 28px;
  fill: #fff;
  margin-left: 4px; /* optical center */
}

/* ============================================================
   SINGLE POST — CONTAINER MOBILE PADDING FIXES
   The single post uses Bootstrap .container — ensure it has
   proper padding on all devices.
   ============================================================ */
@media (max-width: 768px) {
  .smr-single-wrap .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .smr-single__body {
    gap: 24px;
    padding: 24px 0 40px;
  }
}

@media (max-width: 480px) {
  .smr-single-wrap .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .smr-single__body {
    padding: 20px 0 32px;
  }

  .smr-single__content blockquote {
    padding: 14px 16px;
    font-size: 14px;
  }

  .smr-author-bio {
    gap: 14px;
    padding: 16px;
  }

  .smr-author-bio__avatar,
  .smr-author-bio__avatar-placeholder {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  /* TOC hidden by default on mobile — togglable */
  .smr-toc__list {
    max-height: 200px;
    overflow-y: auto;
  }
}