/* =========================================
   BLOG STYLES — AspireNet
========================================= */

/* Blog listing page */
.blog-hero {
  padding: calc(var(--nav-h, 72px) + 64px) 0 64px;
  background: var(--bg, #000);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.07));
}
.blog-hero::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,201,80,0.09) 0%, transparent 70%);
  border-radius: 50%; z-index: 0;
}
.blog-hero .container { position: relative; z-index: 1; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 52px;
}

.blog-card {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.blog-card:hover {
  border-color: rgba(0,201,80,0.4);
  transform: translateY(-5px);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #111;
}

/* SVG placeholder image container */
.blog-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-card-img-wrap svg {
  width: 100%;
  height: 100%;
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-tag {
  display: inline-block;
  background: rgba(0,201,80,0.12);
  color: #00c950;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #fff;
}

.blog-card p {
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #555;
  margin-top: auto;
}
.blog-card-meta span { display: flex; align-items: center; gap: 5px; }
.blog-read-more {
  font-size: 12px;
  font-weight: 700;
  color: #00c950;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-read-more i { font-size: 10px; transition: transform 0.2s; }
.blog-card:hover .blog-read-more i { transform: translateX(3px); }

/* =========================================
   BLOG POST PAGE
========================================= */

.post-hero {
  padding: calc(var(--nav-h, 72px) + 52px) 0 52px;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.post-hero .breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #555;
  margin-bottom: 20px;
}
.post-hero .breadcrumb a { color: #555; text-decoration: none; transition: color 0.2s; }
.post-hero .breadcrumb a:hover { color: #00c950; }

.post-tag {
  display: inline-block;
  background: rgba(0,201,80,0.12);
  color: #00c950;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 20px;
}

.post-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  max-width: 820px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta i { color: #00c950; }

/* Feature image */
.post-feature-img {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  margin: 40px auto 0;
  display: block;
  border: 1px solid rgba(255,255,255,0.07);
}
.post-feature-img svg { width: 100%; height: 100%; display: block; }

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 52px;
  align-items: start;
  padding: 64px 0;
}

/* Post content */
.post-content {
  min-width: 0;
}

.post-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
  color: #fff;
}
.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #fff;
}

.post-content p {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.85;
  margin-bottom: 18px;
}

.post-content ul,
.post-content ol {
  margin: 0 0 20px 0;
  padding-left: 24px;
}
.post-content li {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.8;
  margin-bottom: 8px;
}

.post-content strong { color: #fff; font-weight: 700; }

.post-content .highlight-box {
  background: rgba(0,201,80,0.08);
  border: 1px solid rgba(0,201,80,0.22);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 28px 0;
}
.post-content .highlight-box p {
  margin: 0;
  color: #d1fae5;
  font-size: 0.97rem;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}
.post-content th {
  background: rgba(0,201,80,0.1);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.post-content td {
  padding: 11px 16px;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.post-content tr:last-child td { border-bottom: none; }

/* CTA inside post */
.post-cta {
  background: linear-gradient(135deg, rgba(0,201,80,0.12), rgba(0,201,80,0.06));
  border: 1px solid rgba(0,201,80,0.25);
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0;
}
.post-cta h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}
.post-cta p {
  font-size: 0.93rem;
  color: #9ca3af;
  margin-bottom: 20px;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
}

.sidebar-box {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-box h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

/* TOC */
.toc-list { list-style: none; padding: 0; }
.toc-list li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 0;
}
.toc-list li:last-child { border-bottom: none; }
.toc-list a {
  text-decoration: none;
  font-size: 0.82rem;
  color: #9ca3af;
  transition: color 0.2s;
  line-height: 1.5;
  display: block;
}
.toc-list a:hover { color: #00c950; }

/* Related posts sidebar */
.related-post {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  text-decoration: none;
}
.related-post:last-child { margin-bottom: 0; }
.rp-icon {
  width: 36px; height: 36px; border-radius: 7px;
  background: rgba(0,201,80,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #00c950;
  flex-shrink: 0;
}
.rp-text { font-size: 0.8rem; color: #9ca3af; line-height: 1.5; transition: color 0.2s; }
.related-post:hover .rp-text { color: #fff; }

/* Tags */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 11px; font-weight: 600;
  color: #9ca3af;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 5px 12px; border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}
.tag-pill:hover { color: #00c950; border-color: rgba(0,201,80,0.3); }

/* Related posts bottom section */
.related-bottom {
  padding: 64px 0;
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* Responsive */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 1.7rem; }
  .post-cta { padding: 24px 18px; }
}
