/* ===== BLOG PAGES - Premium Centered Design ===== */

/* Blog Hero */
.blog-hero {
  padding: 140px 0 50px;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1040 50%, var(--bg-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 50%, rgba(139,92,246,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(59,130,246,0.06) 0%, transparent 50%);
}
.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.3; }
.blog-hero p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto; }
.blog-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.blog-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.blog-breadcrumb a:hover { color: #a78bfa; }
.blog-breadcrumb i { font-size: 8px; }
.blog-breadcrumb span { color: rgba(255,255,255,0.7); }
.blog-meta { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: rgba(255,255,255,0.45); }
.blog-meta i { margin-right: 6px; color: rgba(139,92,246,0.6); }
.blog-index-hero { padding-bottom: 40px; }

/* Blog Article - Centered single column */
.blog-article { padding: 60px 0 100px; background: var(--bg-dark); }
.blog-container { max-width: 820px; margin: 0 auto; }
.blog-main { min-width: 0; }

/* Hero Image */
.blog-hero-img { border-radius: 16px; overflow: hidden; margin-bottom: 32px; aspect-ratio: 16/9; }
.blog-hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* Blog Body Content - Centered readable column */
.blog-body { 
  color: rgba(255,255,255,0.82); 
  font-size: 17px; 
  line-height: 1.85; 
  max-width: 100%;
}
.blog-body h1 { font-size: 1.7rem; color: #fff; margin: 32px 0 16px; font-weight: 800; line-height: 1.3; }
.blog-body h2 { font-size: 1.45rem; color: #fff; margin: 28px 0 14px; font-weight: 700; line-height: 1.35; }
.blog-body h3 { font-size: 1.2rem; color: #fff; margin: 24px 0 12px; font-weight: 700; }
.blog-body h4 { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin: 20px 0 10px; font-weight: 600; }
.blog-body p { margin-bottom: 18px; }
.blog-body a { color: #a78bfa; text-decoration: underline; text-underline-offset: 3px; }
.blog-body a:hover { color: #c4b5fd; }
.blog-body strong, .blog-body b { color: rgba(255,255,255,0.95); font-weight: 600; }
.blog-body ul, .blog-body ol { padding-left: 28px; margin-bottom: 18px; }
.blog-body li { margin-bottom: 10px; padding-left: 4px; }
.blog-body li::marker { color: #a78bfa; }
.blog-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px 0; display: block; }
.blog-body blockquote { 
  border-left: 4px solid rgba(139,92,246,0.4); 
  padding: 16px 24px; 
  margin: 24px 0; 
  background: rgba(139,92,246,0.06); 
  border-radius: 0 12px 12px 0; 
  color: rgba(255,255,255,0.7); 
  font-style: italic; 
  font-size: 16px;
}
.blog-body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.blog-body th, .blog-body td { padding: 12px 16px; border: 1px solid rgba(255,255,255,0.08); text-align: left; }
.blog-body th { background: rgba(139,92,246,0.1); color: #fff; font-weight: 600; }

/* Blog CTA */
.blog-cta {
  margin: 48px 0 32px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,130,246,0.08));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 16px;
  text-align: center;
}
.blog-cta h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.blog-cta h3 i { color: #a78bfa; margin-right: 8px; }
.blog-cta p { color: rgba(255,255,255,0.6); margin-bottom: 20px; font-size: 15px; }

/* Post Navigation */
.blog-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.blog-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  max-width: 48%;
}
.blog-nav-link:hover { border-color: rgba(139,92,246,0.3); color: #fff; background: rgba(139,92,246,0.08); }
.blog-nav-next { margin-left: auto; text-align: right; }

/* Blog Grid (Index) */
.blog-listing { padding: 60px 0 100px; background: var(--bg-dark); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,0.3); box-shadow: 0 12px 40px rgba(139,92,246,0.1); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: rgba(0,0,0,0.2); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder { display: flex; align-items: center; justify-content: center; }
.blog-card-placeholder i { font-size: 40px; color: rgba(139,92,246,0.2); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat { font-size: 12px; color: #a78bfa; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.blog-card-cat i { margin-right: 4px; }
.blog-card-body h3 { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body p { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-read { color: #a78bfa; font-size: 13px; font-weight: 600; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }
.blog-card-read i { transition: transform 0.3s; }
.blog-card:hover .blog-card-read i { transform: translateX(4px); }

/* Responsive */
@media (max-width: 640px) {
  .blog-hero { padding: 120px 0 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-nav { flex-direction: column; }
  .blog-nav-link { max-width: 100%; }
  .blog-body { font-size: 15px; }
  .blog-cta { padding: 24px; }
}
