/* ============================================================
   MILELIFY BLOG THEME — blog.css
   Brand tokens sourced from milelify.com/css/styles.css
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEAL — CSS-driven, no inline style flash
   .will-reveal  = hidden, waiting for observer
   .is-visible   = shown (added by JS, or instantly for above-fold)
───────────────────────────────────────────────────────────── */
.will-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────────── */
:root {
  /* Brand colours (from Milelify main site) */
  --plum:             #662456;
  --plum-light:       #8a3070;
  --violet:           #401D68;
  --violet-light:     #5a2d8a;
  --accent:           #FF6B9D;
  --accent2:          #A855F7;
  --gold:             #F5A623;

  /* Blog surface colours */
  --bg:               #faf8fc;
  --surface:          #ffffff;
  --surface-2:        #f4f1fa;
  --border:           #e8e0f0;
  --border-strong:    #cec0e0;

  /* Text */
  --text:             #1a0d2e;
  --text-mid:         #4a3060;
  --text-muted:       #7a6490;
  --text-light:       #a090b8;

  /* Gradients */
  --grad-brand:       linear-gradient(135deg, var(--plum), var(--violet));
  --grad-accent:      linear-gradient(135deg, #FF6B9D, #c084fc, #9333ea);

  /* Sizing */
  --radius-sm:        6px;
  --radius:           12px;
  --radius-lg:        18px;
  --sidebar-w:        320px;
  --max-w:            1200px;

  /* Shadows */
  --shadow-card:      0 2px 16px rgba(102,36,86,0.10);
  --shadow-hover:     0 8px 40px rgba(102,36,86,0.18);
}

/* ─────────────────────────────────────────────────────────────
   BLOG HERO — homepage only
───────────────────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  background: linear-gradient(135deg, #1a0635 0%, #662456 50%, #401D68 100%);
  padding: 72px 24px 80px;
  overflow: hidden;
  text-align: center;
}

/* Subtle noise texture overlay */
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,157,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168,85,247,0.15) 0%, transparent 55%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  z-index: 1;
}

/* Badge */
.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF6B9D;
  box-shadow: 0 0 8px rgba(255,107,157,0.8);
  animation: heroPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.4); }
}

/* H1 */
.blog-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.blog-hero-gradient {
  background: linear-gradient(135deg, #FF6B9D, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.blog-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto 28px;
}

/* Stats row */
.blog-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-stat {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.hero-stat strong {
  color: #ffffff;
  font-weight: 700;
}
.hero-stat-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.8rem;
}

/* Category pills */
.blog-hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.hero-cat-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(6px);
  transition: all 0.22s;
}
.hero-cat-pill:hover {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

/* Wave bottom edge */
.blog-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
  pointer-events: none;
}
.blog-hero-wave svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ── Hero responsive ── */
@media (max-width: 768px) {
  .blog-hero { padding: 48px 16px 64px; }
  .blog-hero-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .blog-hero-desc { font-size: 0.95rem; }
  .blog-hero-badge { font-size: 0.7rem; padding: 5px 13px; }
  .hero-cat-pill { font-size: 0.75rem; padding: 6px 14px; }
}
@media (max-width: 480px) {
  .blog-hero { padding: 36px 12px 56px; }
  .blog-hero-title { font-size: 1.55rem; }
  .blog-hero-desc { font-size: 0.9rem; }
  .blog-hero-meta { gap: 8px; }
  .blog-hero-cats { gap: 8px; }
}

/* ─────────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-light); }

/* ─────────────────────────────────────────────────────────────
   TOP BAR
───────────────────────────────────────────────────────────── */
.top-bar {
  background: var(--grad-brand);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  padding: 8px 0;
}
.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-socials {
  display: flex;
  gap: 14px;
}
.top-bar-socials a {
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.top-bar-socials a:hover { color: #fff; }

/* ─────────────────────────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(102,36,86,0.07);
  transition: box-shadow 0.3s;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 36px; width: auto; }
.blog-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--plum);
}

/* Primary Nav */
.primary-nav { flex: 1; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  display: block;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 100px;
  transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
  background: var(--surface-2);
  color: var(--plum);
}

/* Header CTA Buttons */
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-header-ghost {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-mid);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-header-ghost:hover { background: var(--surface-2); color: var(--plum); }

.btn-header-primary {
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 0 20px rgba(102,36,86,0.35);
  transition: all 0.25s;
}
.btn-header-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 28px rgba(102,36,86,0.55);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 7px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin-bottom: 16px; }
.mobile-nav ul li a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-cta { margin-top: 16px; }
.mobile-nav-cta .btn-header-primary { display: block; text-align: center; }

/* ─────────────────────────────────────────────────────────────
   PAGE WRAP & BLOG LAYOUT
───────────────────────────────────────────────────────────── */
#page-wrap { min-height: 60vh; }

.blog-main { padding: 48px 0 64px; }

.blog-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 40px;
  align-items: start;
}

/* ─────────────────────────────────────────────────────────────
   ARCHIVE HEADER
───────────────────────────────────────────────────────────── */
.archive-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--border);
}
.archive-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--plum);
  margin-bottom: 10px;
}
.archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.archive-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
}

/* ─────────────────────────────────────────────────────────────
   POST CARD
───────────────────────────────────────────────────────────── */
.post-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.post-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-thumbnail {
  display: block;
  overflow: hidden;
  align-self: stretch;
  min-height: 180px;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.post-card:hover .card-thumbnail img { transform: scale(1.05); }

.card-body {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--plum);
  transition: opacity 0.2s;
}
.cat-badge:hover { opacity: 0.85; color: #fff; }

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin: 0;
}
.card-title a {
  color: var(--text);
  transition: color 0.2s;
}
.card-title a:hover { color: var(--plum); }

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-light);
  flex-wrap: wrap;
  margin-top: 4px;
}
.card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.author-avatar-sm {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50%;
  object-fit: cover;
}
.author-name { color: var(--text-mid); font-weight: 500; }
.card-meta-sep { color: var(--border-strong); }
.card-date, .card-read-time, .card-comments { color: var(--text-light); }

/* ─────────────────────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────────────────────── */
.breadcrumb {
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--plum); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-strong); }

/* ─────────────────────────────────────────────────────────────
   SINGLE ARTICLE
───────────────────────────────────────────────────────────── */
.single-article {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.article-header {
  padding: 36px 44px 28px;
  border-bottom: 1px solid var(--border);
}
.article-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
}
.article-author a {
  font-weight: 600;
  color: var(--text-mid);
}
.article-meta-sep { color: var(--border-strong); }

.article-featured-image {
  width: 100%;
}
.article-featured-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}
.article-featured-image figcaption {
  padding: 10px 44px;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  border-bottom: 1px solid var(--border);
}

/* ── Article Content Typography ── */
.article-content {
  padding: 40px 44px;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text);
  margin: 2em 0 0.6em;
  line-height: 1.3;
}
.article-content h2 { font-size: 1.7rem; }
.article-content h3 { font-size: 1.3rem; }
.article-content h4 { font-size: 1.1rem; }
.article-content p  { margin-bottom: 1.4em; }
.article-content a  { color: var(--plum); text-decoration: underline; }
.article-content a:hover { color: var(--plum-light); }
.article-content ul,
.article-content ol { margin: 1em 0 1.4em 1.6em; }
.article-content li { margin-bottom: 0.5em; }
.article-content blockquote {
  border-left: 4px solid var(--plum);
  margin: 1.8em 0;
  padding: 14px 24px;
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}
.article-content code {
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--plum);
}
.article-content pre {
  background: var(--text);
  color: #f0e8ff;
  padding: 20px 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5em 0;
}
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.article-content th,
.article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th { background: var(--surface-2); font-weight: 600; }

/* Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 44px 28px;
}
.tag-pill {
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--surface-2); color: var(--plum); border-color: var(--plum); }

/* Author Bio Card */
.author-bio-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 44px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.author-bio-avatar {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50%;
  flex-shrink: 0;
}
.author-bio-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum);
  margin-bottom: 4px;
}
.author-bio-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.author-bio-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Post Nav */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px;
  background: var(--surface);
  transition: background 0.2s;
}
.post-nav-link:hover { background: var(--surface-2); }
.post-nav-next { text-align: right; }
.post-nav-dir {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum);
}
.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Comments */
.article-comments {
  padding: 36px 44px;
  border-top: 1px solid var(--border);
}
.article-comments .comments-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}
.comment-body {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  margin-bottom: 12px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(102,36,86,0.12);
}
.comment-form .submit {
  padding: 11px 26px;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.comment-form .submit:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(102,36,86,0.4); }

/* ─────────────────────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────────────────────── */
.blog-pagination { margin-top: 40px; }
.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}
.blog-pagination .page-numbers a:hover { background: var(--surface-2); border-color: var(--plum); color: var(--plum); }
.blog-pagination .page-numbers .current { background: var(--grad-brand); color: #fff; border-color: transparent; }
.blog-pagination .page-numbers .prev,
.blog-pagination .page-numbers .next { font-size: 0.8rem; }

/* No posts */
.no-posts { text-align: center; padding: 60px 0; color: var(--text-muted); }
.btn-back { display: inline-block; margin-top: 16px; padding: 10px 22px; border: 1px solid var(--border); border-radius: 100px; color: var(--plum); font-size: 0.88rem; }

/* ─────────────────────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 32px;
  height: 2px;
  background: var(--grad-brand);
}

/* Search Widget */
.search-wrap {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(102,36,86,0.1); }
.search-field {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
}
.search-wrap button {
  padding: 10px 14px;
  background: var(--grad-brand);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.search-wrap button:hover { opacity: 0.88; }

/* Author Widget */
.widget-author { text-align: center; }
.widget-author .author-avatar {
  margin: 0 auto 14px;
}
.widget-author .author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  margin: 0 auto;
}
.widget-author .author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.widget-author .author-bio {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.author-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.author-socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-mid);
  transition: all 0.2s;
}
.author-socials a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* Featured Posts Widget */
.featured-posts-list { display: flex; flex-direction: column; gap: 16px; }
.featured-post-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: start;
}
.featured-post-thumb {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/2;
}
.featured-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.featured-post-item:hover .featured-post-thumb img { transform: scale(1.06); }
.featured-post-meta { display: flex; flex-direction: column; gap: 5px; }
.featured-post-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-post-title:hover { color: var(--plum); }
.featured-post-date { font-size: 0.73rem; color: var(--text-light); }
.featured-post-meta .cat-badge { font-size: 0.62rem; padding: 2px 8px; }

/* Category List */
.category-list { list-style: none; }
.category-list li {
  border-bottom: 1px solid var(--border);
}
.category-list li:last-child { border: none; }
.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
}
.category-list a:hover { color: var(--plum); }
.cat-count {
  background: var(--surface-2);
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.73rem;
  color: var(--text-light);
}

/* Newsletter Widget */
.widget-newsletter p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s;
  outline: none;
}
.newsletter-form input:focus { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(102,36,86,0.1); }
.newsletter-form button {
  padding: 10px;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
}
.newsletter-form button:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────────
   WORDPRESS DEFAULT WIDGET OVERRIDES
   Targets native WP widget HTML so any widget added via
   Appearance → Widgets automatically inherits Milelify style.
───────────────────────────────────────────────────────────── */

/* Widget wrapper — gives every WP widget the sidebar card look */
.blog-sidebar .widget {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* Widget title — h2 is what WP outputs by default */
.blog-sidebar .widget .widget-title,
.blog-sidebar .widget h2,
.blog-sidebar .widget h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
  letter-spacing: normal;
  text-transform: none;
}
.blog-sidebar .widget .widget-title::after,
.blog-sidebar .widget h2::after,
.blog-sidebar .widget h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 32px;
  height: 2px;
  background: var(--grad-brand);
}

/* ── WP Search Widget (widget_search) ── */
.blog-sidebar .widget_search .search-form,
.blog-sidebar .widget_search form {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-sidebar .widget_search .search-form:focus-within,
.blog-sidebar .widget_search form:focus-within {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(102,36,86,0.10);
}
.blog-sidebar .widget_search label { display: none; } /* hide "Search for:" label */
.blog-sidebar .widget_search .search-field,
.blog-sidebar .widget_search input[type="search"],
.blog-sidebar .widget_search input[type="text"] {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
}
.blog-sidebar .widget_search .search-submit,
.blog-sidebar .widget_search input[type="submit"],
.blog-sidebar .widget_search button[type="submit"] {
  padding: 10px 16px;
  background: var(--grad-brand);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  border-radius: 0;
}
.blog-sidebar .widget_search .search-submit:hover,
.blog-sidebar .widget_search input[type="submit"]:hover { opacity: 0.88; }

/* ── WP Recent Posts (widget_recent_entries) ── */
.blog-sidebar .widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_recent_entries ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.blog-sidebar .widget_recent_entries ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_recent_entries ul li a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  transition: color 0.2s;
}
.blog-sidebar .widget_recent_entries ul li a:hover { color: var(--plum); }
.blog-sidebar .widget_recent_entries .post-date {
  font-size: 0.73rem;
  color: var(--text-light);
}

/* ── WP Recent Comments (widget_recent_comments) ── */
.blog-sidebar .widget_recent_comments ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_recent_comments ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.blog-sidebar .widget_recent_comments ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_recent_comments ul li a {
  font-weight: 600;
  color: var(--plum);
}
.blog-sidebar .widget_recent_comments ul li a:hover { color: var(--plum-light); }

/* ── WP Archives (widget_archives) ── */
.blog-sidebar .widget_archive ul,
.blog-sidebar .widget_archives ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_archive ul li,
.blog-sidebar .widget_archives ul li {
  border-bottom: 1px solid var(--border);
}
.blog-sidebar .widget_archive ul li:last-child,
.blog-sidebar .widget_archives ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_archive ul li a,
.blog-sidebar .widget_archives ul li a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.blog-sidebar .widget_archive ul li a:hover,
.blog-sidebar .widget_archives ul li a:hover { color: var(--plum); }

/* ── WP Categories (widget_categories) ── */
.blog-sidebar .widget_categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_categories ul li {
  border-bottom: 1px solid var(--border);
}
.blog-sidebar .widget_categories ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_categories ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.blog-sidebar .widget_categories ul li a:hover { color: var(--plum); }
/* post count badge */
.blog-sidebar .widget_categories ul li .post-count,
.blog-sidebar .widget_categories ul li > span {
  background: var(--surface-2);
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.73rem;
  color: var(--text-light);
}

/* ── WP Tag Cloud (widget_tag_cloud) ── */
.blog-sidebar .widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-sidebar .widget_tag_cloud .tagcloud a {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.78rem !important; /* override WP inline font-size */
  color: var(--text-muted);
  transition: all 0.2s;
  line-height: 1;
}
.blog-sidebar .widget_tag_cloud .tagcloud a:hover {
  background: var(--surface-2);
  color: var(--plum);
  border-color: var(--plum);
}

/* ── WP Calendar (widget_calendar) ── */
.blog-sidebar .widget_calendar .calendar_wrap { overflow-x: auto; }
.blog-sidebar .widget_calendar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--text-mid);
}
.blog-sidebar .widget_calendar caption {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  padding-bottom: 10px;
  text-align: left;
}
.blog-sidebar .widget_calendar th {
  padding: 6px 4px;
  text-align: center;
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.blog-sidebar .widget_calendar td {
  padding: 5px 4px;
  text-align: center;
  color: var(--text-mid);
}
.blog-sidebar .widget_calendar td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
}
.blog-sidebar .widget_calendar td#today {
  font-weight: 700;
  color: var(--plum);
}
.blog-sidebar .widget_calendar tfoot td a {
  background: none;
  color: var(--plum);
  border-radius: 0;
  font-weight: 600;
  font-size: 0.8rem;
  width: auto;
  height: auto;
}
.blog-sidebar .widget_calendar tfoot { border-top: 1px solid var(--border); }
.blog-sidebar .widget_calendar tfoot td { padding-top: 10px; }

/* ── WP Text / HTML Widget (widget_text) ── */
.blog-sidebar .widget_text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}
.blog-sidebar .widget_text a { color: var(--plum); }
.blog-sidebar .widget_text a:hover { color: var(--plum-light); text-decoration: underline; }

/* ── WP Nav Menu Widget (widget_nav_menu) ── */
.blog-sidebar .widget_nav_menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_nav_menu ul li {
  border-bottom: 1px solid var(--border);
}
.blog-sidebar .widget_nav_menu ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_nav_menu ul li a {
  display: block;
  padding: 10px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.blog-sidebar .widget_nav_menu ul li a:hover { color: var(--plum); padding-left: 4px; }

/* ── WP Meta Widget (widget_meta) ── */
.blog-sidebar .widget_meta ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_meta ul li {
  border-bottom: 1px solid var(--border);
}
.blog-sidebar .widget_meta ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_meta ul li a {
  display: block;
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 500;
  transition: color 0.2s;
}
.blog-sidebar .widget_meta ul li a:hover { color: var(--plum); }

/* ── WP RSS Widget (widget_rss) ── */
.blog-sidebar .widget_rss ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-sidebar .widget_rss ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.blog-sidebar .widget_rss ul li:last-child { border-bottom: none; }
.blog-sidebar .widget_rss .rsswidget {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.blog-sidebar .widget_rss .rss-date,
.blog-sidebar .widget_rss .rssSummary {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Block-based widgets (WP 5.8+) ── */
.blog-sidebar .widget .wp-block-search__input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
.blog-sidebar .widget .wp-block-search__input:focus { border-color: var(--plum); }
.blog-sidebar .widget .wp-block-search__button {
  padding: 10px 16px;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: opacity 0.2s;
}
.blog-sidebar .widget .wp-block-search__button:hover { opacity: 0.88; }
.blog-sidebar .widget .wp-block-search__inside-wrapper {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-sidebar .widget .wp-block-search__inside-wrapper:focus-within {
  border-color: var(--plum);
  box-shadow: 0 0 0 3px rgba(102,36,86,0.10);
}
.blog-sidebar .widget .wp-block-search__inside-wrapper .wp-block-search__input {
  border: none;
}

/* ─────────────────────────────────────────────────────────────
   BLOG CTA BANNER
───────────────────────────────────────────────────────────── */
.blog-cta-banner {
  background: var(--grad-brand);
  padding: 40px 24px;
}
.blog-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.blog-cta-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.blog-cta-text p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.blog-cta-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.btn-cta-primary {
  padding: 12px 26px;
  background: #fff;
  color: var(--plum);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: all 0.25s;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.2); color: var(--plum); }
.btn-cta-ghost {
  padding: 12px 26px;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: all 0.25s;
}
.btn-cta-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: #0d0818;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  text-align: center;
  max-width: 520px;
}
.footer-brand img { margin: 0 auto 16px; }
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: 20px;
}
.footer-brand .footer-socials { justify-content: center; }
.footer-socials {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.social-icon:hover { background: var(--plum); color: #fff; border-color: var(--plum); }

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-nav {
  display: flex;
  gap: 16px;
  list-style: none;
}
.footer-nav a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.8); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Tablet (≤1024px)
───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Layout: stack feed above sidebar */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .blog-sidebar {
    position: static;
    /* Show sidebar widgets in a 2-col grid on tablet */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  /* Footer: 2-col on tablet */

  /* Post card: slightly smaller thumbnail */
  .post-card { grid-template-columns: 220px 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Mobile (≤768px)
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── Header ── */
  .top-bar-date { display: none; }
  .top-bar-inner { justify-content: center; }

  .header-inner {
    padding: 12px 16px;
    gap: 0;
    position: relative;
  }
  .primary-nav { display: none; }
  .header-cta  { display: none; }
  .hamburger   { display: flex; }

  /* Keep logo left, hamburger right */
  .site-logo { flex: 1; }

  /* ── Blog main ── */
  .blog-main { padding: 24px 0 48px; }
  .blog-container { padding: 0 16px; }

  /* ── Layout: fully stacked ── */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── Sidebar: single column on mobile ── */
  .blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* ── Archive header ── */
  .archive-header { margin-bottom: 24px; padding-bottom: 20px; }
  .archive-title  { font-size: 1.6rem; }
  .archive-desc   { font-size: 0.9rem; }

  /* ── Post card: stack image on top of content ── */
  .post-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .card-thumbnail {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;   /* fixed ratio when stacked */
    flex-shrink: 0;
  }
  .card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .card-body { padding: 18px 20px 20px; gap: 8px; }
  .card-title { font-size: 1.1rem; }
  .card-excerpt { font-size: 0.88rem; }
  .card-meta { font-size: 0.74rem; gap: 5px; }

  /* ── Breadcrumb ── */
  .breadcrumb { font-size: 0.75rem; margin-bottom: 16px; }

  /* ── Single article ── */
  .article-header  { padding: 20px 18px 18px; }
  .article-title   { font-size: 1.55rem; }
  .article-meta    { font-size: 0.78rem; gap: 6px; }

  .article-featured-image img { max-height: 260px; }
  .article-featured-image figcaption { padding: 8px 18px; }

  .article-content { padding: 22px 18px; font-size: 0.96rem; }
  .article-content h2 { font-size: 1.35rem; }
  .article-content h3 { font-size: 1.1rem; }
  .article-content blockquote { padding: 12px 16px; }

  .article-tags    { padding: 0 18px 18px; gap: 6px; }
  .tag-pill        { font-size: 0.74rem; padding: 4px 10px; }

  .author-bio-card { padding: 18px; gap: 14px; flex-wrap: wrap; }
  .author-bio-avatar { width: 48px !important; height: 48px !important; }

  .article-comments { padding: 22px 18px; }

  /* ── Post navigation ── */
  .post-nav { grid-template-columns: 1fr; gap: 0; }
  .post-nav-link { padding: 16px 18px; }
  .post-nav-next { text-align: left; border-top: 1px solid var(--border); }

  /* ── Pagination ── */
  .blog-pagination .page-numbers { gap: 4px; }
  .blog-pagination .page-numbers a,
  .blog-pagination .page-numbers span {
    min-width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  /* ── Blog CTA banner ── */
  .blog-cta-banner { padding: 28px 16px; }
  .blog-cta-inner  { flex-direction: column; text-align: center; gap: 20px; }
  .blog-cta-text h3 { font-size: 1.2rem; }
  .blog-cta-buttons { justify-content: center; flex-wrap: wrap; }

  /* ── Footer ── */
  .site-footer { padding: 40px 0 0; }
  .footer-inner { padding: 0 16px; }
  .footer-top {
    padding-bottom: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
  }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* ── Sidebar widgets on mobile ── */
  .sidebar-widget { padding: 18px; }
  .blog-sidebar .widget { padding: 18px; }
  .widget-title,
  .blog-sidebar .widget h2,
  .blog-sidebar .widget h3 { font-size: 0.97rem; margin-bottom: 14px; }

  /* Featured posts: full-width thumb on mobile */
  .featured-post-item {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE — Small mobile (≤480px)
───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

  .blog-container { padding: 0 12px; }

  /* Header */
  .site-logo img { height: 28px; }
  .blog-label { font-size: 0.65rem; padding: 2px 6px; }

  /* Archive */
  .archive-title { font-size: 1.35rem; }
  .archive-desc  { font-size: 0.86rem; }

  /* Post card */
  .card-thumbnail { aspect-ratio: 3 / 2; }
  .card-body      { padding: 14px 16px 18px; }
  .card-title     { font-size: 1rem; }
  .card-meta      { flex-wrap: wrap; row-gap: 3px; }
  /* Hide less-important meta items on tiny screens */
  .card-read-time,
  .card-comments  { display: none; }

  /* Single article */
  .article-header  { padding: 16px 14px; }
  .article-title   { font-size: 1.3rem; }
  .article-content { padding: 18px 14px; font-size: 0.93rem; }
  .article-tags    { padding: 0 14px 14px; }
  .author-bio-card { padding: 14px; }
  .article-comments { padding: 18px 14px; }

  /* Breadcrumb: truncate on tiny screens */
  .breadcrumb { font-size: 0.7rem; }

  /* CTA */
  .blog-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  .btn-cta-primary,
  .btn-cta-ghost {
    text-align: center;
    width: 100%;
    padding: 13px 20px;
  }

  /* Footer */
  .footer-brand p { font-size: 0.82rem; }
  .footer-col h4  { font-size: 0.72rem; }
  .footer-col ul a { font-size: 0.84rem; }

  /* Sidebar */
  .sidebar-widget { padding: 14px; }
  .blog-sidebar .widget { padding: 14px; }

  /* Featured post items: smaller thumb */
  .featured-post-item { grid-template-columns: 60px 1fr; gap: 8px; }
  .featured-post-title { font-size: 0.8rem; }

  /* Pagination */
  .blog-pagination .page-numbers a,
  .blog-pagination .page-numbers span {
    min-width: 30px;
    height: 30px;
    font-size: 0.78rem;
    padding: 0 6px;
  }
}
