/* ── EduTrack Blog — Stylesheet ──────────────────────────────────────────── */

:root {
  --brand-primary:   #6366f1;
  --brand-secondary: #8b5cf6;
  --brand-accent:    #06b6d4;
  --brand-green:     #10b981;
  --text-dark:       #111827;
  --text-muted:      #6b7280;
  --bg-light:        #f9fafb;
  --border:          #e5e7eb;
  --radius:          12px;
  
  
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
.blog-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.7;
}

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.blog-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.blog-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.blog-brand:hover { color: var(--brand-primary); }

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: inline-block;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-dark);
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

/* ── Category pills ───────────────────────────────────────────────────────── */
.cat-pill {
  padding: .3rem .9rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: #fff;
  transition: all .15s;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* ── Post cards ───────────────────────────────────────────────────────────── */
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s, transform .18s;
  background: #fff;
}
.post-card:hover {
  box-shadow: 0 8px 24px rgba(99,102,241,.12);
  transform: translateY(-2px);
}

.post-card-body { padding: 1.5rem; }

.post-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-primary);
  text-decoration: none;
}
.post-category:hover { text-decoration: underline; }

.post-date { font-size: .8rem; color: var(--text-muted); }

.post-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: .4rem 0 .75rem;
}
.post-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.post-title a:hover { color: var(--brand-primary); }

.post-excerpt {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.read-time { font-size: .8rem; color: var(--text-muted); }

.read-more {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; }
.read-more .fa-arrow-right { font-size: .7rem; }

/* ── Article ──────────────────────────────────────────────────────────────── */
.article-header { border-bottom: 2px solid var(--border); padding-bottom: 1.5rem; }

.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--text-dark);
  margin-top: .5rem;
}

.article-meta {
  font-size: .85rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #1f2937;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  color: var(--text-dark);
  letter-spacing: -.01em;
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: .5rem;
  color: var(--text-dark);
}

.article-body p { margin-bottom: 1.25rem; }

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: .5rem; }

.article-body strong { font-weight: 700; }

/* ── CTA blocks ───────────────────────────────────────────────────────────── */
.blog-cta-inline {
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  border: 1px solid #c4b5fd;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.blog-cta-inline p { margin-bottom: .75rem; font-size: 1rem; }

.btn-cta {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  margin: .25rem .25rem;
  transition: background .15s;
}
.btn-cta:hover { background: var(--brand-secondary); color: #fff; }

.btn-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--brand-primary);
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  border-radius: 8px;
  border: 2px solid var(--brand-primary);
  text-decoration: none;
  margin: .25rem .25rem;
  transition: all .15s;
}
.btn-cta-outline:hover {
  background: var(--brand-primary);
  color: #fff;
}

/* ── FAQ section ──────────────────────────────────────────────────────────── */
.blog-faq {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2.5rem;
}

.blog-faq h2 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text-dark);
}

.faq-item p {
  font-size: .95rem;
  color: #374151;
  margin: 0;
}

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.tag-pill {
  display: inline-block;
  background: #f3f4f6;
  color: var(--text-muted);
  font-size: .78rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  margin: .15rem;
  border: 1px solid var(--border);
}

/* ── Share bar ────────────────────────────────────────────────────────────── */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-twitter  { background: #000;     color: #fff; }
.share-linkedin { background: #0077b5;  color: #fff; }
.share-whatsapp { background: #25d366;  color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 80px; }

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.sidebar-heading {
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

.related-post {
  display: block;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: color .12s;
}
.related-post:last-child { border-bottom: none; }
.related-post:hover { color: var(--brand-primary); }

.sidebar-wa {
  background: linear-gradient(135deg, #dcfce7, #d1fae5);
  border-color: #86efac;
  text-align: center;
}
.sidebar-wa i { color: #16a34a; display: block; }

/* ── End CTA ──────────────────────────────────────────────────────────────── */
.blog-cta-end {
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border-radius: var(--radius);
  border: 1px solid #c4b5fd;
}

/* ── Footer CTA ───────────────────────────────────────────────────────────── */
.footer-cta {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff;
}
.footer-cta h3 { font-weight: 800; color: #fff; }
.footer-cta .text-muted { color: #c4b5fd !important; }

/* ── Site footer ──────────────────────────────────────────────────────────── */
.blog-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  font-size: .85rem;
}
.blog-footer a { color: var(--brand-primary); text-decoration: none; }
.blog-footer a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 1.6rem; }
  .article-title { font-size: 1.5rem; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.25rem; }
}
