/* ===== BLOG STYLES — Matches V2 Design System ===== */

/* --- Blog Index --- */
.blog-hero {
  background: linear-gradient(135deg, var(--oxford) 0%, var(--egyptian) 50%, var(--oxford) 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,113,242,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.blog-hero-title {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.blog-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Article Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--spring);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(6,6,51,0.1);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-alt);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--orange);
  margin-bottom: 12px;
}
.blog-card-tag svg {
  width: 14px;
  height: 14px;
}
.blog-card-title {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* --- Article Page --- */
.article-hero {
  background: linear-gradient(135deg, var(--oxford) 0%, var(--egyptian) 50%, var(--oxford) 100%);
  padding: 140px 24px 60px;
  text-align: center;
  position: relative;
}
.article-breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.article-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumb a:hover {
  color: var(--orange);
}
.article-tag {
  display: inline-block;
  background: rgba(244,104,0,0.15);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-hero-title {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.article-hero-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Article Content --- */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
}
.article-content h2 {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 48px 0 16px;
  letter-spacing: -0.3px;
}
.article-content h3 {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 12px;
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}
.article-content a {
  color: var(--egyptian);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-content a:hover {
  color: var(--orange);
}

/* Callout / tip box */
.article-tip {
  background: linear-gradient(135deg, rgba(3,49,140,0.04) 0%, rgba(15,113,242,0.06) 100%);
  border-left: 4px solid var(--egyptian);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px;
}
.article-tip strong {
  color: var(--egyptian);
}

/* CTA Banner inside articles */
.article-cta {
  background: linear-gradient(135deg, var(--oxford) 0%, var(--egyptian) 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  margin: 48px 0;
}
.article-cta-title {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.article-cta-text {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.article-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.3s var(--spring), background 0.2s;
}
.article-cta .btn-cta:hover {
  transform: scale(1.04);
  background: var(--orange-light);
}

/* Related articles */
.related-section {
  background: var(--surface);
  padding: 60px 24px;
}
.related-title {
  font-family: 'MADE Tommy Soft', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 40px 16px 60px;
  }
  .article-content {
    padding: 32px 16px 60px;
    font-size: 16px;
  }
  .article-cta {
    padding: 28px 20px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
