/* ════════════════════════════════════════════
   MUTEKI GROUP — Single Post Page Styles
   Matches bost-page.html exactly
   ════════════════════════════════════════════ */

/* Body background on single posts */
body.single {
  background: #F8F8FF; /* --bg2 */
}

/* ── Remove the generic 66px main-content padding on single pages ──
   The .blog-hero already includes enough top padding (140px)
   to clear the fixed header. The extra 66px from elementor.css
   creates a double-gap. */
body.single:not(.elementor-page) #main-content,
body.single-post #main-content,
body.single-case_study #main-content {
  padding-top: 0 !important;
}

/* ════════════ BLOG HERO ════════════ */
.blog-hero {
  padding: 140px 80px 0;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.blog-hero .bg-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.blog-hero .blob-1 {
  width: 500px; height: 500px; top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(91,79,232,0.06) 0%, transparent 70%);
}
.blog-hero .blob-2 {
  width: 400px; height: 400px; bottom: 0; right: -50px;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
}

.blog-hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
}

/* Breadcrumb + eyebrow row */
.post-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link svg { width: 13px; height: 13px; }
.back-link:hover { color: var(--indigo); }

/* Category eyebrow pill */
.blog-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--indigo-soft);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-i);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.blog-hero .eyebrow:hover {
  background: #e0ddff;
  border-color: var(--indigo-light);
}

.blog-h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 28px;
}

/* Meta bar */
.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--sub);
  font-weight: 500;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-item svg { width: 16px; height: 16px; color: var(--sub2); flex-shrink: 0; }

.meta-author { gap: 8px; }
.meta-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg2);
}
.meta-avatar-fallback {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}

/* Star reviews pill */
.star-reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
}
.stars { color: #F59E0B; letter-spacing: 2px; font-size: 13px; }
.star-score { font-size: 12px; color: var(--sub); font-weight: 600; }

/* Featured Image — overlaps hero bottom */
.feat-image-wrap {
  width: 100%;
  max-width: 1100px;
  height: 500px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  z-index: 3;
  transform: translateY(40px);
}
.feat-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}
.feat-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--indigo-soft) 0%, #ddd8ff 100%);
}
.feat-image-placeholder svg {
  width: 64px; height: 64px;
  color: var(--indigo);
  opacity: 0.35;
}

/* ════════════ LAYOUT GRID ════════════ */
.layout-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 80px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

/* ════════════ ARTICLE CONTENT ════════════ */
.article-content {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--sub);
  min-width: 0; /* prevent grid overflow */
}

/* WordPress .entry-content typography */
.article-content p,
.article-content .entry-content p  { margin-bottom: 24px; }

.article-content h2,
.article-content .entry-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 48px 0 20px;
  line-height: 1.3;
}
.article-content h3,
.article-content .entry-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink2);
  margin: 36px 0 16px;
}
.article-content h4,
.article-content .entry-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--ink2);
  margin: 28px 0 12px;
}

.article-content ul,
.article-content .entry-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style-type: none;
}
.article-content ul li,
.article-content .entry-content ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 16px;
  color: var(--sub);
}
.article-content ul li::before,
.article-content .entry-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.6;
}

.article-content ol,
.article-content .entry-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}
.article-content ol li,
.article-content .entry-content ol li {
  margin-bottom: 10px;
  color: var(--sub);
}

.article-content blockquote,
.article-content .entry-content blockquote {
  border-left: 4px solid var(--indigo);
  background: var(--indigo-soft);
  padding: 24px 32px;
  border-radius: 0 16px 16px 0;
  margin: 40px 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--ink2);
  font-style: italic;
  line-height: 1.6;
}

.article-content code,
.article-content .entry-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  background: var(--indigo-soft);
  color: var(--indigo);
  padding: 2px 8px;
  border-radius: 6px;
}
.article-content pre,
.article-content .entry-content pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 24px 28px;
  border-radius: 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  margin: 32px 0;
}
.article-content pre code { background: transparent; color: inherit; padding: 0; }

.article-content a,
.article-content .entry-content a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.article-content a:hover { color: var(--indigo-light); }

.article-content img:not(.author-avatar),
.article-content .entry-content img:not(.author-avatar) {
  border-radius: 16px;
  margin: 32px 0;
  width: 100%;
  height: auto;
}

/* ── Protect the author avatar from the full-width image rule above ── */
.author-box .author-avatar,
.article-content .author-box .author-avatar {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  border: 3px solid var(--indigo-soft) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* ════════════ AUTHOR BOX ════════════ */
.author-box {
  margin-top: 64px;
  padding: 40px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 24px;
  align-items: center; /* exactly as in bost-page.html */
}
.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--indigo-soft);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
/* Fallback initial-letter avatar */
.author-avatar-fallback.author-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  border: 3px solid var(--indigo-soft);
  box-shadow: var(--shadow-sm);
}
.author-box .author-info { flex: 1; }
.author-box .author-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}
.author-box .author-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.author-bio {
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.6;
  margin-bottom: 16px;
}
.author-socials { display: flex; gap: 10px; }
.social-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px; /* exactly as in bost-page.html */
  color: var(--sub2);
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.social-icon:hover {
  background: var(--indigo-soft);
  border-color: var(--indigo-light);
  color: var(--indigo);
  transform: translateY(-2px);
}
.social-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* ════════════ POST NAVIGATION ════════════ */
.post-nav {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.post-nav-link {
  flex: 1;
  min-width: 200px;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16,1,0.3,1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-nav-link:hover {
  border-color: var(--border-i);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.post-nav-next { text-align: right; }
.nav-direction {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.post-nav-next .nav-direction { justify-content: flex-end; }
.nav-direction svg { width: 13px; height: 13px; flex-shrink: 0; }
.nav-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.widget {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

/* Sidebar search */
.sidebar-search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.sidebar-search-wrap svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--sub2);
  pointer-events: none;
}
.search-box {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg2);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.search-box:focus {
  border-color: var(--indigo);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--indigo-soft);
}

/* Sidebar category chips */
.sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-chips .chip {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.sidebar-chips .chip:hover,
.sidebar-chips .chip.active {
  color: var(--indigo);
  border-color: var(--indigo-light);
  background: var(--indigo-soft);
}

/* Share grid */
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.share-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--sub2);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn:hover {
  background: var(--indigo);
  color: #fff;
  border-color: var(--indigo);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(91,79,232,0.3);
}
.share-btn:hover svg { fill: #fff; }
/* Link-icon share btn uses stroke not fill */
.share-btn:last-child svg { fill: none; stroke: currentColor; stroke-width: 2; }
.share-btn:last-child:hover svg { stroke: #fff; }

.copy-feedback {
  font-size: 12px;
  color: var(--indigo);
  font-weight: 600;
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
}

/* ════════════ CTA FOOTER ════════════ */
.srv-cta {
  padding: 100px 80px;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.srv-cta h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px; font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}
.srv-cta .btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  padding: 15px 32px;
  font-size: 15px;
  box-shadow: 0 2px 0 #3D32C4, 0 8px 28px rgba(91,79,232,0.32);
}
.srv-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 0 #3D32C4, 0 16px 40px rgba(91,79,232,0.42);
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 1024px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
    padding: 80px 40px;
    gap: 40px;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .feat-image-wrap { height: 380px; transform: translateY(20px); }
}

@media (max-width: 768px) {
  .blog-hero { padding: 120px 20px 0; }
  .blog-h1 { font-size: 30px; letter-spacing: -1px; }
  .blog-meta { gap: 12px; }
  .feat-image-wrap { height: 280px; border-radius: 16px; transform: translateY(16px); }
  .layout-wrapper { padding: 60px 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }
  .author-socials { justify-content: center; }
  .post-nav { flex-direction: column; }
  .post-nav-next { text-align: left; }
  .post-nav-next .nav-direction { justify-content: flex-start; }
  .srv-cta { padding: 80px 20px; }
  .srv-cta h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .blog-hero { padding: 100px 16px 0; }
  .feat-image-wrap { height: 220px; }
  .layout-wrapper { padding: 48px 16px; }
}
