/* Blog-specific styles */

.blog-hero {
  padding: 80px 0 30px;
  text-align: center;
}
.blog-hero .container { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; line-height: 1.1; }
.blog-hero .section-sub { max-width: 640px; margin: 0 auto; }

/* Article layout */
.article {
  padding: 60px 0 80px;
}
.article-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--text-mute); font-size: 0.88rem;
  margin-bottom: 18px;
}
.article-meta .dot { width: 4px; height: 4px; background: var(--text-mute); border-radius: 50%; }
.article h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; margin-bottom: 18px; }
.article .lede { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 36px; line-height: 1.6; }
.article-cover {
  width: 100%; height: 320px; border-radius: var(--radius);
  margin-bottom: 44px; position: relative; overflow: hidden;
}
.article-cover::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5)); }

.article-body h2 { font-size: 1.7rem; margin: 44px 0 16px; line-height: 1.2; }
.article-body h3 { font-size: 1.2rem; margin: 30px 0 12px; }
.article-body p { font-size: 1.04rem; color: var(--text-dim); line-height: 1.75; margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 8px 0 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.article-body li { color: var(--text-dim); line-height: 1.65; padding-left: 6px; }
.article-body ul li { list-style: none; position: relative; padding-left: 20px; }
.article-body ul li::before { content:''; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.article-body ol { list-style: decimal; color: var(--orange-2); }
.article-body ol li::marker { color: var(--orange); font-weight: 700; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  margin: 24px 0; padding: 20px 24px;
  border-left: 3px solid var(--orange);
  background: rgba(255,140,26,0.06);
  border-radius: 12px;
  font-style: italic; color: var(--text);
}
html[dir="rtl"] .article-body blockquote { border-left: none; border-right: 3px solid var(--orange); }

.article-cta {
  margin-top: 50px;
  padding: 32px;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.article-cta h3 { font-size: 1.4rem; }
.article-cta p { color: var(--text-dim); max-width: 420px; }

/* ── Mobile h1 safety ── */
.article h1 {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
@media (max-width: 480px) {
  .article h1 { font-size: 1.75rem !important; line-height: 1.18; }
  .article .lede { font-size: 1rem; }
}

/* ── Article footer (minimal, no grid) ── */
.blog-article-footer {
  padding: 28px 0;
  margin-top: 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255,245,234,0.4));
}
.blog-article-footer .footer-bottom {
  padding-top: 0;
  border-top: none;
}

/* ── Read next / Related posts ── */
.related {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.related > h3 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rel-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(10,10,10,0.04);
  transition: transform .24s cubic-bezier(.22,.68,0,1.2),
              box-shadow .24s ease,
              border-color .24s ease;
}
.rel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(10,10,10,0.10);
  border-color: rgba(245,147,30,0.28);
}

.rel-thumb {
  height: 96px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.rel-thumb--1 { background: linear-gradient(135deg, #F5931E 0%, #d97810 100%); }
.rel-thumb--2 { background: linear-gradient(135deg, #1a1a18 0%, #F5931E 100%); }
.rel-thumb--3 { background: linear-gradient(135deg, #0a0a0a 0%, #FFB84D 100%); }
.rel-thumb--4 { background: linear-gradient(135deg, #0f0f0d 0%, #c9960c 100%); }
.rel-thumb--5 { background: linear-gradient(135deg, #F5931E 0%, #0a0a0a 100%); }
.rel-thumb--6 { background: linear-gradient(135deg, #1a1a1a 0%, #d97810 100%); }
.rel-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 16px 16px;
}

.rel-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rel-cat {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 7px;
  display: block;
}
.rel-title {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  margin: 0 0 14px;
  flex: 1;
  letter-spacing: -0.01em;
}
.rel-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  transition: gap .18s ease;
}
.rel-card:hover .rel-cta { gap: 8px; }

@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .rel-thumb { height: 80px; }
}
