/* ── BLOG STYLES ── */
.blog-hero {
  padding: 9rem 6% 4rem;
  background: var(--night);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.blog-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 70% 40%, rgba(37,99,255,0.08) 0%, transparent 70%);
}
.blog-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.blog-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; flex-wrap: wrap;
}
.blog-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); background: rgba(37,99,255,0.1);
  border: 1px solid rgba(37,99,255,0.2); border-radius: 100px;
  padding: 0.25rem 0.75rem;
}
.blog-date { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.blog-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.blog-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #2563ff, #60a5fa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.blog-hero .intro {
  font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.75;
  font-weight: 400; max-width: 640px; margin-bottom: 1.5rem;
}
.blog-byline {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-family: 'Syne',sans-serif;
  font-size: 0.8rem; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.byline-text { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.byline-text strong { color: var(--text); font-weight: 600; }

/* ── ARTICLE BODY ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 6%;
  align-items: start;
}
.blog-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--white); letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.blog-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.blog-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin: 1.75rem 0 0.6rem;
}
.blog-body { min-width: 0; overflow-wrap: break-word; }
.blog-body p {
  font-size: 0.95rem; color: rgba(232,234,240,0.9);
  line-height: 1.85; font-weight: 400; margin-bottom: 1.1rem;
}
.blog-body strong { color: var(--text); font-weight: 600; }
.blog-body ul {
  margin: 0.75rem 0 1.25rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.blog-body ul li {
  font-size: 0.92rem; color: rgba(232,234,240,0.9);
  line-height: 1.65; font-weight: 400;
  padding-left: 1.25rem; position: relative;
}
.blog-body ul li::before {
  content: '–'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.blog-body .callout {
  background: rgba(37,99,255,0.07); border: 1px solid rgba(37,99,255,0.2);
  border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem; margin: 2rem 0;
}
.blog-body .callout p { margin: 0; color: var(--text); }

/* ── BLOG IMAGES ── */
.blog-hero-img {
  width: 100%; height: 420px;
  object-fit: cover; object-position: center;
  display: block;
  border-bottom: 1px solid var(--border);
}
.article-img {
  width: 100%; border-radius: 12px;
  margin: 2rem 0; display: block;
  aspect-ratio: 16/7; object-fit: cover;
  border: 1px solid var(--border);
}
.article-img-caption {
  text-align: center; font-size: 0.75rem;
  color: rgba(255,255,255,0.6); margin-top: -1.5rem;
  margin-bottom: 2rem; font-style: italic;
}
.img-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 2rem 0;
}
.img-grid img {
  width: 100%; border-radius: 10px;
  aspect-ratio: 4/3; object-fit: cover;
  border: 1px solid var(--border);
}
@media(max-width:600px){ .img-grid{grid-template-columns:1fr;} }
.blog-body .kw { color: var(--accent); font-style: normal; }

/* ── SIDEBAR ── */
.blog-sidebar { position: sticky; top: 100px; min-width: 0; }
.sidebar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem; margin-bottom: 1.25rem;
  min-width: 0;
}
.sidebar-card h4 {
  font-family: 'Syne', sans-serif; font-size: 0.85rem;
  font-weight: 700; color: var(--white); margin-bottom: 1rem;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto;
}
.sidebar-card .toc-link {
  display: block; font-size: 0.8rem; color: rgba(255,255,255,0.8);
  text-decoration: none; padding: 0.4rem 0;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
  overflow-wrap: break-word; word-break: break-word;
}
.sidebar-card .toc-link:last-child { border-bottom: none; }
.sidebar-card .toc-link:hover { color: var(--accent); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border-radius: 14px; padding: 1.5rem; text-align: center;
  box-shadow: 0 12px 32px rgba(37,99,255,0.25);
  min-width: 0; overflow-wrap: break-word;
}
.sidebar-cta h4 {
  font-family:'Syne',sans-serif; font-size:1rem; font-weight:800; color:var(--white); margin-bottom:0.5rem;
  overflow-wrap: break-word; word-break: break-word; hyphens: auto; line-height: 1.3;
}
.sidebar-cta p { font-size:0.78rem; color:rgba(255,255,255,0.75); margin-bottom:1rem; font-weight:300; line-height:1.5; overflow-wrap: break-word; }
.sidebar-cta a {
  display: block; background: var(--white); color: var(--accent);
  border-radius: 8px; padding: 0.7rem; font-size: 0.85rem;
  font-weight: 700; text-decoration: none; transition: all 0.2s;
}
.sidebar-cta a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }

/* ── HAMBURGER (blog pages) ── */
@media (max-width: 900px) {
  .blog-nav .nav-links { display: none; }
  .blog-nav .hamburger { display: flex; }
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.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); }
.blog-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: rgba(11,15,26,0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 6%; flex-direction: column; gap: 0;
}
.blog-mobile-menu.open { display: flex; }
.blog-mobile-menu a {
  color: var(--text); text-decoration: none; font-size: 0.95rem;
  font-weight: 500; padding: 0.85rem 0;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.blog-mobile-menu a:hover { color: var(--white); }
.blog-mobile-menu .mob-cta {
  background: var(--accent); color: var(--white) !important;
  border-radius: 8px; text-align: center; padding: 0.85rem !important;
  margin-top: 0.5rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 2rem; }
  .blog-sidebar { position: static; }
}
