/* ══════════════════════════════════════
   BLOG PAGE — Care on Careers
   Warm editorial aesthetic
══════════════════════════════════════ */
:root {
  --amber:   #fa9928;
  --amber-d: #e8860f;
  --navy:    #0f172a;
  --ink:     #1e293b;
  --muted:   #64748b;
  --fog:     #f8fafc;
  --border:  #e2e8f0;
  --white:   #ffffff;
}

/* ── Global resets inside content ── */
.blog-wrap * { box-sizing: border-box; }
.blog-wrap { font-family: 'DM Sans', sans-serif; }

/* ── Hero banner ── */
.blog-hero {
  background: linear-gradient(130deg, var(--navy) 0%, #1a3a5c 60%, #0f2744 100%);
  border-radius: 20px;
  padding: 60px 50px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(250,153,40,.18) 0%, transparent 65%);
}
.blog-hero-label {
  display: inline-block;
  background: rgba(250,153,40,.2);
  color: var(--amber);
  border: 1px solid rgba(250,153,40,.35);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; color: #fff;
  line-height: 1.15; margin: 0 0 16px;
}
.blog-hero h1 em { font-style: italic; color: var(--amber); }
.blog-hero p {
  color: #94a3b8; font-size: 16px;
  max-width: 480px; line-height: 1.7; margin: 0;
}
.blog-hero-deco {
  position: absolute; right: 50px; top: 50%;
  transform: translateY(-50%);
  font-size: 130px; opacity: .07; color: #fff;
  font-family: 'Playfair Display', serif;
  pointer-events: none; user-select: none;
}

/* ── Filter bar ── */
.blog-filter-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 30px;
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--muted);
  background: var(--white); cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.filter-tag:hover,
.filter-tag.active {
  border-color: var(--amber); color: var(--amber);
  background: rgba(250,153,40,.06);
}
.filter-tag.active { font-weight: 600; }

/* ── Featured post ── */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-radius: 16px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 8px 40px rgba(15,23,42,.10);
  margin-bottom: 48px;
  border: 1px solid var(--border);
}
.featured-thumb {
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.featured-thumb .feat-icon { font-size: 80px; color: rgba(255,255,255,.85); }
.feat-badge {
  position: absolute; top: 18px; left: 18px;
  background: var(--amber); color: #fff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.featured-body {
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.feat-cat {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--amber); margin-bottom: 12px;
}
.featured-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700;
  color: var(--ink); line-height: 1.35;
  margin: 0 0 16px;
}
.featured-body .excerpt {
  color: var(--muted); font-size: 15px; line-height: 1.7;
  margin-bottom: 28px;
}
.feat-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 28px;
}
.feat-meta span { display: flex; align-items: center; gap: 5px; }
.btn-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber); color: #fff;
  padding: 11px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; width: fit-content;
  transition: all .2s;
}
.btn-read-more:hover {
  background: var(--amber-d); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(250,153,40,.35);
}

/* ── Post grid ── */
.posts-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.posts-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--ink); margin: 0;
}
.posts-header .post-count {
  font-size: 13px; color: var(--muted);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.post-card:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,.12);
  transform: translateY(-3px);
}
.post-thumb {
  height: 170px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.post-thumb .p-icon { font-size: 52px; color: rgba(255,255,255,.8); }
.post-thumb .p-cat {
  position: absolute; bottom: 12px; left: 14px;
  background: rgba(255,255,255,.2); backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.3);
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin: 0 0 10px; line-height: 1.4;
}
.post-body h4 a { color: inherit; text-decoration: none; }
.post-body h4 a:hover { color: var(--amber); }
.post-body .p-excerpt {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.65; flex: 1; margin-bottom: 16px;
}
.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.post-meta-small {
  font-size: 12px; color: #94a3b8;
  display: flex; align-items: center; gap: 8px;
}
.post-meta-small span { display: flex; align-items: center; gap: 4px; }
.link-more {
  font-size: 13px; font-weight: 600; color: var(--amber);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.link-more:hover { color: var(--amber-d); }

/* ── Empty state ── */
.blog-empty {
  text-align: center; padding: 80px 20px;
  color: var(--muted);
}
.blog-empty i { font-size: 60px; color: #cbd5e1; display: block; margin-bottom: 20px; }
.blog-empty h3 { font-size: 20px; color: var(--ink); }

/* ── Pagination override ── */
.blog-pagination { display: flex; justify-content: center; margin-top: 10px; }
.blog-pagination .page-link { color: var(--ink); border-color: var(--border); }
.blog-pagination .page-item.active .page-link { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ══════════════════════════════════════
   BLOG SINGLE ARTICLE PAGE
══════════════════════════════════════ */
.article-wrap { font-family: 'DM Sans', sans-serif; max-width: 820px; margin: 0 auto; }

/* ── Back link ── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; text-decoration: none;
  margin-bottom: 28px; transition: color .2s;
}
.back-link:hover { color: var(--amber); }

/* ── Article header ── */
.article-header { margin-bottom: 32px; }
.article-cat-badge {
  display: inline-block;
  background: rgba(250,153,40,.12); color: var(--amber);
  border: 1px solid rgba(250,153,40,.3);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.article-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; color: var(--ink);
  line-height: 1.25; margin: 0 0 20px;
}
.article-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px;
  font-size: 14px; color: var(--muted);
  padding-bottom: 22px; border-bottom: 2px solid var(--border);
}
.article-meta-row span { display: flex; align-items: center; gap: 6px; }
.article-meta-row .author-chip {
  display: flex; align-items: center; gap: 8px;
  background: #f1f5f9; border-radius: 30px;
  padding: 5px 14px 5px 8px;
}
.author-chip .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ── Cover image / gradient ── */
.article-cover {
  height: 280px; border-radius: 16px; margin-bottom: 36px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.article-cover i { font-size: 90px; color: rgba(255,255,255,.7); }
.article-cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.5) 0%, transparent 60%);
}

/* ── Body typography ── */
.article-body {
  font-size: 16px; color: #334155; line-height: 1.85;
  margin-bottom: 40px;
}
.article-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px; color: var(--ink);
  margin: 40px 0 14px; font-weight: 700;
}
.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--ink);
  margin: 32px 0 12px; font-weight: 600;
}
.article-body p { margin: 0 0 18px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--amber);
  background: rgba(250,153,40,.06);
  margin: 24px 0; padding: 16px 20px;
  border-radius: 0 8px 8px 0; color: var(--ink);
  font-style: italic;
}

/* ── Bottom bar ── */
.article-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--border);
}
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
  background: #f1f5f9; color: var(--muted);
  font-size: 12px; font-weight: 500;
  padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--border);
}
.btn-back-blog {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber); color: #fff;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.btn-back-blog:hover { background: var(--amber-d); color: #fff; }

/* ── Related posts ── */
.related-section { margin-top: 50px; }
.related-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; color: var(--ink); margin-bottom: 22px;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px; }
.rel-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  text-decoration: none; display: block; transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.rel-card:hover { box-shadow: 0 8px 28px rgba(15,23,42,.10); transform: translateY(-2px); }
.rel-thumb {
  height: 110px; display: flex; align-items: center; justify-content: center;
}
.rel-thumb i { font-size: 36px; color: rgba(255,255,255,.75); }
.rel-body { padding: 14px; }
.rel-cat { font-size: 11px; color: var(--amber); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.rel-title { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--ink); line-height: 1.35; font-weight: 600; }

@media (max-width: 768px) {
  .blog-hero { padding: 36px 24px; }
  .blog-hero-deco { display: none; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 200px; }
}
