/* ============================================
   BLOG — blog.css
   ============================================ */

/* ---- Active nav ---- */
.main-nav a.active { color: var(--navy); background: var(--light-bg); font-weight: 700; }

/* ---- Image placeholders (no real images yet) ---- */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
}
.gradient-navy  { background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid)); }
.gradient-green { background: linear-gradient(135deg, #1a5c38, var(--green)); }
.gradient-gold  { background: linear-gradient(135deg, #9a6820, var(--gold)); }
.gradient-teal  { background: linear-gradient(135deg, #0e5060, var(--teal)); }

/* ---- Filter Bar ---- */
.blog-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 68px;
  z-index: 50;
}
.blog-filter-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---- Blog Layout ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
  align-items: start;
}

/* ---- Featured Post ---- */
.featured-post {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--white);
  margin-bottom: 32px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.featured-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 2;
}
.featured-img { height: 100%; min-height: 280px; }
.blog-card-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.featured-title { font-size: 22px; line-height: 1.3; margin: 8px 0 12px; }
.featured-title a { color: var(--text-dark); text-decoration: none; }
.featured-title a:hover { color: var(--green); }

/* ---- Post Cards Grid ---- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.post-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img { height: 160px; overflow: hidden; flex-shrink: 0; }
.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.post-card h3 { font-size: 16px; line-height: 1.4; margin: 0; font-weight: 700; }
.post-card h3 a { color: var(--text-dark); text-decoration: none; }
.post-card h3 a:hover { color: var(--green); }
.post-excerpt { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin: 0; flex: 1; }

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 100px;
}
.cat-entrepreneurship { background: rgba(46,125,85,0.12); color: var(--green); }
.cat-employment       { background: rgba(192,57,43,0.1);  color: #c0392b; }
.cat-business-tips    { background: rgba(212,146,42,0.12); color: var(--gold); }
.cat-program          { background: var(--navy-light);     color: var(--navy); }
.cat-resources        { background: var(--teal-light);     color: var(--teal); }

.post-date { font-size: 12px; color: var(--text-light); }
.post-read-time { font-size: 12px; color: var(--text-light); }

/* Post footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}
.author-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.read-more-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}
.read-more-link:hover { text-decoration: underline; }

/* No results */
.blog-no-results {
  text-align: center;
  padding: 48px 0;
  color: var(--text-light);
  font-size: 15px;
}

/* ---- Blog Sidebar ---- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}
.sidebar-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 22px; }
.sidebar-card h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* Category list */
.category-list { display: flex; flex-direction: column; gap: 4px; }
.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.cat-link:hover, .cat-link.active { background: var(--light-bg); color: var(--navy); font-weight: 600; }
.cat-count { font-size: 12px; color: var(--text-light); background: var(--light-bg); padding: 2px 8px; border-radius: 100px; }

/* About blog */
.about-blog-card { text-align: center; }
.about-blog-logo { margin-bottom: 10px; display: flex; justify-content: center; }
.about-blog-card p { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-bottom: 12px; }

/* CTA sidebar */
.cta-sidebar-card { background: var(--navy); border-color: var(--navy); }
.cta-sidebar-card h3 { color: var(--white); border-bottom-color: rgba(255,255,255,0.15); }
.cta-sidebar-card p  { font-size: 13px; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 14px; }

/* Recent posts */
.recent-posts { display: flex; flex-direction: column; gap: 0; }
.recent-post {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-title { font-size: 13px; color: var(--text-dark); line-height: 1.45; margin-bottom: 4px; font-weight: 600; }
.recent-post:hover .recent-post-title { color: var(--green); }
.recent-post-date { font-size: 11px; color: var(--text-light); }

/* ============================================
   SINGLE POST PAGE
   ============================================ */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding-top: 40px;
  padding-bottom: 64px;
  align-items: start;
}

/* Post article */
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.post-breadcrumb a { color: var(--text-mid); text-decoration: none; font-weight: 500; }
.post-breadcrumb a:hover { color: var(--green); }
.post-breadcrumb svg { color: var(--border); }

.post-header { margin-bottom: 40px; }
.post-header h1 { font-size: clamp(24px, 3.5vw, 38px); line-height: 1.2; margin: 16px 0 20px; }
.post-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.author-avatar-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.byline-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.byline-role { font-size: 12px; color: var(--text-light); }

.post-hero-img { border-radius: var(--radius); overflow: hidden; height: 340px; background: var(--light-bg); }
.post-hero-placeholder { height: 100%; }

/* Post body */
.post-body { font-size: 17px; line-height: 1.8; color: var(--text-dark); margin-bottom: 40px; }
.post-body p { margin-bottom: 20px; }
.post-body h2 { font-size: 24px; margin: 36px 0 14px; color: var(--text-dark); }
.post-body h3 { font-size: 19px; margin: 28px 0 10px; }
.post-body ul, .post-body ol { margin: 0 0 20px 24px; }
.post-body li { margin-bottom: 8px; color: var(--text-mid); line-height: 1.7; }
.post-body a { color: var(--green); font-weight: 600; }
.post-lead { font-size: 20px; color: var(--text-mid); line-height: 1.65; font-weight: 400; }
.post-body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
}

.post-cta-block {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0 0;
}
.post-cta-block h3 { color: var(--white); font-size: 18px; margin-bottom: 8px; }
.post-cta-block p  { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 16px; line-height: 1.65; }

/* Tags & share */
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: var(--light-bg);
  border-radius: 100px;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--light-bg);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
.post-back {
  padding: 20px 0 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--navy); }

/* Post sidebar */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}
.post-author-card {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.author-avatar-sidebar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: 15px; font-weight: 800; color: var(--text-dark); }
.author-role { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.author-bio { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-bottom: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { height: 240px; }
}
@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; }
  .blog-sidebar, .post-sidebar { grid-template-columns: 1fr; }
  .blog-filter-inner { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 6px 12px; }
}
