/*
Theme Name: Go-Mailer Blog
Theme URI: https://blog.go-mailer.com
Author: Go-Mailer Limited
Author URI: https://go-mailer.com
Description: The official Go-Mailer blog theme. Apple-minimal design system — Playfair Display headlines, Poppins body, Naira-first Nigerian customer engagement platform.
Version: 1.0.0
License: Proprietary
Text Domain: gomailer-blog
Tags: blog, custom-menu, featured-images, right-sidebar, translation-ready
*/

/* ── DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  --blue:        #43a5ff;
  --blue-dark:   #1e2f44;
  --blue-deeper: #162336;
  --blue-6:      #edf4ff;
  --blue-5:      #d3e6ff;
  --blue-1:      #6bb8ff;
  --green:       #03896c;
  --green-6:     #eafaee;
  --green-3:     #85e098;
  --red:         #e36b6b;
  --orange:      #ffaa2b;

  --n1: #111114;
  --n2: #3a3a3f;
  --n3: #636369;
  --n4: #98989f;
  --n5: #c8c8cf;
  --n6: #e4e4eb;
  --n7: #f4f4f6;
  --n8: #fafafb;
  --w:  #ffffff;

  --fd: 'Playfair Display', Georgia, serif;
  --fb: 'Poppins', -apple-system, sans-serif;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.07), 0 24px 48px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 6px rgba(0,0,0,.03), 0 16px 48px rgba(0,0,0,.08), 0 48px 96px rgba(0,0,0,.05);

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  --ease: cubic-bezier(.4, 0, .2, 1);

  --content-width: 720px;
  --sidebar-width: 300px;
  --site-width:    1160px;
}

/* ── RESET ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-1); }
ul, ol { list-style: none; }

/* ── BASE ──────────────────────────────────────────────────────────── */
body {
  font-family: var(--fb);
  background: var(--w);
  color: var(--n1);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.01em;
  overflow-x: hidden;
}

/* ── LAYOUT ────────────────────────────────────────────────────────── */
.site-container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 40px;
}

.site-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}

/* ── NAV ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(200%) blur(20px);
  -webkit-backdrop-filter: saturate(200%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-xs);
}

.site-header .site-container {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 20px;
  color: var(--n1);
  text-decoration: none;
  letter-spacing: -.04em;
  flex-shrink: 0;
}
.site-logo span { color: var(--blue); }

/* Main nav */
.main-navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.main-navigation ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-navigation ul li a {
  font-size: 13px;
  font-weight: 400;
  color: var(--n3);
  text-decoration: none;
  transition: color .15s;
  letter-spacing: 0;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a { color: var(--n1); }

/* Dropdown */
.main-navigation ul li { position: relative; }
.main-navigation ul li ul {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--w);
  border: 1px solid var(--n6);
  border-radius: var(--r-lg);
  padding: 6px;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility .15s;
  transform: translateX(-50%) translateY(-4px);
  flex-direction: column;
  gap: 0;
}
.main-navigation ul li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.main-navigation ul li ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.main-navigation ul li ul li a:hover { background: var(--n7); color: var(--n1); }

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.header-cta .btn-ghost {
  font-size: 13px;
  font-weight: 500;
  color: var(--n2);
  text-decoration: none;
  transition: color .15s;
}
.header-cta .btn-ghost:hover { color: var(--blue); }
.header-cta .btn-pill {
  font-size: 13px;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(67,165,255,.3);
}
.header-cta .btn-pill:hover {
  background: var(--blue-1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(67,165,255,.25);
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--n2);
}

/* ── BLOG HEADER BAND ──────────────────────────────────────────────── */
.blog-header {
  background: linear-gradient(180deg, var(--n7) 0%, var(--w) 100%);
  border-bottom: 1px solid var(--n6);
  padding: 48px 0 40px;
  text-align: center;
}
.blog-header-eye {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.blog-header h1 {
  font-family: var(--fd);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--n1);
  line-height: 1.1;
  margin-bottom: 10px;
}
.blog-header h1 em { font-style: italic; color: var(--blue); }
.blog-header p {
  font-size: 15px;
  font-weight: 300;
  color: var(--n3);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Category tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.category-tab {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--n6);
  color: var(--n3);
  text-decoration: none;
  transition: all .18s;
  background: var(--w);
}
.category-tab:hover,
.category-tab.active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

/* ── FEATURED POST ─────────────────────────────────────────────────── */
.featured-post {
  background: var(--blue-dark);
  border-radius: var(--r-2xl);
  overflow: hidden;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
}
.featured-post-img {
  position: relative;
  overflow: hidden;
}
.featured-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: transform .6s var(--ease);
}
.featured-post:hover .featured-post-img img { transform: scale(1.04); }
.featured-post-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-post-eye {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.fp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.65)} }
.featured-post-title {
  font-family: var(--fd);
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 14px;
  text-decoration: none;
  display: block;
  transition: color .15s;
}
.featured-post-title:hover { color: var(--blue-1); }
.featured-post-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.fp-cat {
  background: rgba(67,165,255,.15);
  color: var(--blue-1);
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 11px;
}
.fp-read-more {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap .15s;
}
.fp-read-more:hover { gap: 10px; color: var(--blue-1); }

/* ── POST GRID ─────────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-card {
  background: var(--w);
  border: 1px solid var(--n6);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all .25s var(--ease);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--n5);
}
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--n7);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blue-6) 0%, var(--n7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.post-card-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--n1);
  line-height: 1.3;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
  transition: color .15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-title:hover { color: var(--blue); }
.post-card-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: var(--n3);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--n6);
  padding-top: 12px;
  margin-top: auto;
}
.post-card-meta { font-size: 11px; color: var(--n4); font-weight: 300; }
.post-card-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .15s;
}
.post-card-read-more:hover { gap: 7px; }

/* ── PAGINATION ────────────────────────────────────────────────────── */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--n3);
  text-decoration: none;
  transition: all .18s var(--ease);
  padding: 0 10px;
  letter-spacing: -.01em;
}
.pagination a:hover {
  background: var(--n7);
  color: var(--n1);
}
.pagination span.current {
  background: var(--blue-dark);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pagination span.dots {
  background: none;
  color: var(--n5);
  pointer-events: none;
}
.pagination .prev,
.pagination .next {
  font-size: 13px;
  font-weight: 600;
  color: var(--n2);
  padding: 0 16px;
  border: 1px solid var(--n6);
  background: var(--w);
  gap: 6px;
  box-shadow: var(--shadow-xs);
}
.pagination .prev:hover,
.pagination .next:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-6);
  box-shadow: none;
}
.pagination-divider {
  width: 1px;
  height: 20px;
  background: var(--n6);
  margin: 0 4px;
}

/* ── SIDEBAR ───────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: var(--n7);
  border: 1px solid var(--n6);
  border-radius: var(--r-xl);
  padding: 24px;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.sidebar-widget.dark {
  background: var(--blue-dark);
  border-color: transparent;
}
.widget-title {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--n1);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--n6);
}
.sidebar-widget.dark .widget-title {
  color: #fff;
  border-color: rgba(255,255,255,.08);
}

/* Search widget */
.widget-search {
  display: flex;
  gap: 8px;
  width: 100%;
}
.widget-search input {
  width: 80%;
  font-family: var(--fb);
  font-size: 13px;
  padding: 9px 13px;
  border: 1px solid var(--n6);
  border-radius: var(--r);
  outline: none;
  background: var(--w);
  color: var(--n1);
  transition: border-color .15s;
  box-sizing: border-box;
}
.widget-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(67,165,255,.1); }
.widget-search button {
  flex-shrink: 0;
  background: var(--blue);
  border: none;
  border-radius: var(--r);
  padding: 9px 12px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.widget-search button:hover { background: var(--blue-1); }

/* Categories widget */
.widget-categories li {
  border-bottom: 1px solid var(--n6);
}
.widget-categories li:last-child { border-bottom: none; }
.widget-categories li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--n2);
  text-decoration: none;
  transition: color .15s;
}
.widget-categories li a:hover { color: var(--blue); }
.widget-categories li a span {
  font-size: 11px;
  color: var(--n4);
  background: var(--n6);
  padding: 1px 7px;
  border-radius: 100px;
}

/* Recent posts widget */
.widget-recent-posts li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--n6);
}
.widget-recent-posts li:last-child { border-bottom: none; }
.wrp-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--n6);
}
.wrp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wrp-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--n1);
  letter-spacing: -.01em;
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.wrp-title:hover { color: var(--blue); }
.wrp-date { font-size: 11px; color: var(--n4); margin-top: 4px; font-weight: 300; }

/* CTA widget */
.widget-cta { text-align: center; }
.widget-cta .wc-eye {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-1);
  margin-bottom: 10px;
  display: block;
}
.widget-cta h3 {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.widget-cta h3 em { font-style: italic; color: var(--blue-1); }
.widget-cta p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
  line-height: 1.65;
  font-weight: 300;
}
.widget-cta .btn-cta {
  display: block;
  background: var(--blue);
  color: #fff;
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--fb);
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(67,165,255,.3);
}
.widget-cta .btn-cta:hover { background: var(--blue-1); transform: translateY(-1px); color: #fff; }
.widget-cta .btn-ghost-cta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .15s;
}
.widget-cta .btn-ghost-cta:hover { color: rgba(255,255,255,.7); }

/* Tags widget */
.widget-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--w);
  border: 1px solid var(--n6);
  color: var(--n3);
  text-decoration: none;
  transition: all .15s;
}
.widget-tag:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-6); }

/* ── SINGLE POST ───────────────────────────────────────────────────── */
.single-post-header { margin-bottom: 36px; }
.single-post-cats { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.single-post-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 3px 10px;
  background: var(--blue-6);
  border-radius: 100px;
  text-decoration: none;
  transition: all .15s;
}
.single-post-cat:hover { background: var(--blue); color: #fff; }
.single-post-title {
  font-family: var(--fd);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--n1);
  line-height: 1.1;
  margin-bottom: 16px;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--n4);
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--n6);
}
.spm-author { font-weight: 500; color: var(--n2); }
.spm-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--n5); }
.spm-reading { display: flex; align-items: center; gap: 4px; }

/* Featured image */
.single-post-featured {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.single-post-featured img { width: 100%; }

/* Post content */
.post-content {
  font-size: 16px;
  font-weight: 300;
  color: var(--n2);
  line-height: 1.85;
  letter-spacing: -.005em;
}
.post-content h2 {
  font-family: var(--fd);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--n1);
  margin: 40px 0 16px;
  line-height: 1.2;
}
.post-content h3 {
  font-family: var(--fd);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--n1);
  margin: 32px 0 12px;
  line-height: 1.25;
}
.post-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--n1);
  margin: 24px 0 10px;
}
.post-content p { margin-bottom: 20px; }
.post-content p:last-child { margin-bottom: 0; }
.post-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--blue-1); }
.post-content strong { font-weight: 600; color: var(--n1); }
.post-content em { font-style: italic; }
.post-content ul, .post-content ol {
  margin: 0 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content ul li { list-style: disc; }
.post-content ol li { list-style: decimal; }
.post-content blockquote {
  border-left: 3px solid var(--blue);
  background: var(--blue-6);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-family: var(--fd);
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic;
  font-weight: 700;
  color: var(--n1);
  letter-spacing: -.02em;
  line-height: 1.5;
}
.post-content blockquote cite {
  display: block;
  font-family: var(--fb);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--n4);
  margin-top: 10px;
}
.post-content img {
  border-radius: var(--r-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.post-content code {
  font-size: 13px;
  background: var(--n7);
  border: 1px solid var(--n6);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  color: var(--blue-dark);
}
.post-content pre {
  background: var(--n1);
  border-radius: var(--r-lg);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: var(--green-3);
}
.post-content pre code { background: none; border: none; padding: 0; color: inherit; }
.post-content hr {
  border: none;
  border-top: 1px solid var(--n6);
  margin: 36px 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.post-content table th {
  background: var(--n7);
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--n3);
  border-bottom: 2px solid var(--n6);
  text-align: left;
}
.post-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--n6);
  font-weight: 300;
  color: var(--n2);
}
.post-content table tr:last-child td { border-bottom: none; }

/* Post tags */
.post-tags { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--n6); }
.post-tags-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--n4); margin-bottom: 10px; }
.post-tags-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* Author box */
.author-box {
  background: var(--n7);
  border: 1px solid var(--n6);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 36px;
}
.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blue-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-weight: 900;
  font-size: 20px;
  color: var(--blue);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 15px; font-weight: 600; color: var(--n1); margin-bottom: 4px; letter-spacing: -.01em; }
.author-role { font-size: 12px; color: var(--n4); margin-bottom: 8px; }
.author-bio { font-size: 13px; font-weight: 300; color: var(--n3); line-height: 1.65; }

/* Post navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}
.post-nav-item {
  background: var(--n7);
  border: 1px solid var(--n6);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  text-decoration: none;
  transition: all .2s;
}
.post-nav-item:hover { background: var(--w); box-shadow: var(--shadow-sm); border-color: var(--n5); }
.post-nav-item.next { text-align: right; }
.pn-label { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--n4); margin-bottom: 4px; }
.pn-title { font-family: var(--fd); font-size: 15px; font-weight: 700; color: var(--n1); letter-spacing: -.02em; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts h2 {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--n1);
  margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Comments */
.comments-section { margin-top: 48px; }
.comments-title {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--n1);
  margin-bottom: 24px;
}
.comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.comment-item {
  display: flex;
  gap: 14px;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  overflow: hidden;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--n1); }
.comment-date { font-size: 11px; color: var(--n4); }
.comment-text { font-size: 14px; font-weight: 300; color: var(--n2); line-height: 1.7; }

/* Comment form */
.comment-form { background: var(--n7); border: 1px solid var(--n6); border-radius: var(--r-xl); padding: 28px; }
.comment-form h3 { font-family: var(--fd); font-size: 18px; font-weight: 700; letter-spacing: -.025em; color: var(--n1); margin-bottom: 20px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cf-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.cf-field label { font-size: 12px; font-weight: 600; color: var(--n2); }
.cf-field input, .cf-field textarea {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 300;
  padding: 10px 13px;
  border: 1px solid var(--n6);
  border-radius: var(--r);
  outline: none;
  background: var(--w);
  color: var(--n1);
  transition: border-color .15s;
  width: 100%;
}
.cf-field input:focus, .cf-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(67,165,255,.1); }
.cf-field textarea { resize: vertical; min-height: 100px; }
.cf-submit {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 28px;
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(67,165,255,.25);
}
.cf-submit:hover { background: var(--blue-1); transform: translateY(-1px); }

/* ── STATIC PAGES ──────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--n7) 0%, var(--w) 60%);
  border-bottom: 1px solid var(--n6);
  padding: 64px 0 48px;
}
.page-header-eye {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}
.page-header-title {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--n1);
  line-height: 1.08;
  margin-bottom: 12px;
}
.page-header-title em { font-style: italic; color: var(--blue); }
.page-header-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--n3);
  max-width: 480px;
  line-height: 1.75;
}
.page-content { padding: 56px 0; }
.page-content-inner { max-width: 720px; }

/* Contact form */
.contact-form { background: var(--n7); border: 1px solid var(--n6); border-radius: var(--r-2xl); padding: 40px; margin-top: 40px; }
.contact-form h3 { font-family: var(--fd); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--n1); margin-bottom: 20px; }

/* ── FOOTER ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-logo {
  font-family: var(--fd);
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.04em;
  display: block;
  margin-bottom: 9px;
}
.footer-logo span { color: var(--blue); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.28);
  line-height: 1.65;
  font-weight: 300;
  max-width: 220px;
}
.footer-col h5 {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  margin-bottom: 13px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 12.5px;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color .15s;
  font-weight: 300;
}
.footer-col ul li a:hover { color: rgba(255,255,255,.8); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  font-size: 11.5px;
  color: rgba(255,255,255,.2);
  font-weight: 300;
}

/* ── UTILITIES ─────────────────────────────────────────────────────── */
.reading-time { display: inline-flex; align-items: center; gap: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.no-results { text-align: center; padding: 80px 40px; color: var(--n3); font-size: 15px; }
.no-results h2 { font-family: var(--fd); font-size: 28px; font-weight: 700; color: var(--n1); margin-bottom: 10px; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */

/* ── Tablet: 768px – 1080px ── */
@media (max-width: 1080px) {
  :root { --site-width: 100%; }
  .site-container { padding: 0 24px; }
  .featured-post-body { padding: 32px 36px; }
}

/* ── Tablet: up to 960px ── */
@media (max-width: 960px) {
  /* Layout */
  .site-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 32px 0 64px;
  }
  .sidebar { display: none; } /* hidden on mobile — menu replaces it */

  /* Nav */
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }
  .header-cta .btn-ghost { display: none; }

  /* Blog header */
  .blog-header { padding: 32px 0 24px; }
  .blog-header h1 { font-size: clamp(26px, 5vw, 38px); }
  .category-tabs { gap: 5px; }
  .category-tab { font-size: 11px; padding: 5px 12px; }

  /* Featured post — stack on mobile */
  .featured-post {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: var(--r-xl);
  }
  .featured-post-img { height: 200px; }
  .featured-post-body { padding: 24px 24px 28px; }
  .featured-post-title { font-size: clamp(18px, 4vw, 24px); }

  /* Post grid — single column */
  .posts-grid { grid-template-columns: 1fr; }

  /* Single post */
  .single-post-title { font-size: clamp(24px, 5vw, 36px); }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; gap: 12px; }

  /* Comments */
  .cf-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Page header */
  .page-header { padding: 40px 0 32px; }
  .page-header-title { font-size: clamp(28px, 5vw, 42px); }
}

/* ── Mobile: up to 640px ── */
@media (max-width: 640px) {
  /* Container */
  .site-container { padding: 0 16px; }

  /* Layout */
  .site-layout { padding: 24px 0 48px; gap: 0; }

  /* Blog header */
  .blog-header { padding: 24px 0 20px; }
  .blog-header h1 { font-size: clamp(22px, 6vw, 30px); }
  .blog-header p { font-size: 14px; }
  .category-tabs {
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { white-space: nowrap; flex-shrink: 0; }

  /* Featured post */
  .featured-post { border-radius: var(--r-lg); }
  .featured-post-img { height: 180px; }
  .featured-post-body { padding: 20px 20px 24px; }
  .featured-post-title { font-size: clamp(16px, 5vw, 20px); margin-bottom: 10px; }
  .featured-post-excerpt { display: none; }
  .fp-read-more { margin-top: 14px; }

  /* Post cards */
  .posts-grid { gap: 14px; }
  .post-card-body { padding: 16px 16px 14px; }
  .post-card-title { font-size: 16px; }

  /* Pagination */
  .pagination { gap: 3px; }
  .pagination a,
  .pagination span { min-width: 36px; height: 36px; font-size: 12px; }
  .pagination .prev,
  .pagination .next { padding: 0 12px; font-size: 12px; }

  /* Single post */
  .single-post-title { font-size: clamp(22px, 6vw, 30px); }
  .single-post-meta { gap: 10px; font-size: 12px; flex-wrap: wrap; }
  .post-content { font-size: 15px; }
  .post-content h2 { font-size: clamp(20px, 5vw, 26px); }
  .post-content h3 { font-size: clamp(17px, 4vw, 22px); }
  .post-content blockquote { padding: 16px 18px; font-size: clamp(15px, 4vw, 18px); }
  .post-content pre { font-size: 12px; padding: 18px; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { padding: 20px; }
  .post-nav { gap: 10px; }
  .post-nav-item { padding: 14px 16px; }

  /* Comments */
  .comment-form { padding: 20px; }
  .comment-item { gap: 10px; }
  .comment-avatar { width: 32px; height: 32px; font-size: 11px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; font-size: 11px; }
  .site-footer { padding: 36px 0 20px; }

  /* Page templates */
  .page-header { padding: 32px 0 24px; }
  .page-header-title { font-size: clamp(24px, 6vw, 36px); }
  .page-header-sub { font-size: 15px; }
  .contact-form { padding: 24px 20px; }
}

/* ── Small mobile: up to 390px ── */
@media (max-width: 390px) {
  .site-container { padding: 0 14px; }
  .featured-post-img { height: 160px; }
  .single-post-title { font-size: 20px; }
  .nav-cta { padding: 7px 14px; font-size: 12px; }
  .pagination .prev span,
  .pagination .next span { display: none; }
}

/* ── MOBILE NAV ────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 54px 0 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(20px);
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--n2);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--r);
  transition: background .12s;
}
.mobile-nav a:hover { background: var(--n7); color: var(--n1); }
.mobile-nav .btn-pill {
  background: var(--blue);
  color: #fff;
  text-align: center;
  border-radius: 100px;
  margin-top: 8px;
  font-weight: 600;
}
.mobile-nav .btn-pill:hover { background: var(--blue-1); }

/* ── WP DEFAULTS ───────────────────────────────────────────────────── */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--n4); text-align: center; margin-top: 6px; font-style: italic; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { margin: 0 auto; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.gallery-item { overflow: hidden; border-radius: var(--r); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
