/* ═══════════════════════════════════════════════════════════════════════
   BLOG SYSTEM — White Banger  |  blog.css
   Shared by: /blog (listing) + /blog/post-slug (article pages)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Category badge system ─────────────────────────────────────────────── */
.blog-cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 99px; letter-spacing: .5px; text-transform: uppercase;
}
.blog-cat-ai         { background: rgba(99,102,241,.12);  color: #4f46e5; }
.blog-cat-marketing  { background: rgba(168,85,247,.12);  color: #9333ea; }
.blog-cat-career     { background: rgba(16,185,129,.12);  color: #059669; }
.blog-cat-courses    { background: rgba(245,158,11,.15);  color: #d97706; }
.blog-cat-haryana    { background: rgba(239,68,68,.1);    color: #dc2626; }
.blog-cat-tech       { background: rgba(26,86,219,.12);   color: #1a56db; }
.blog-cat-general    { background: rgba(6,14,56,.08);     color: #060e38; }

/* ══════════════════════════════════════════════════════════════════════
   BLOG LISTING PAGE
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, #060e38 0%, #0f1f6e 55%, #1a3a8f 100%);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(26,86,219,.3) 0%, transparent 60%),
              radial-gradient(ellipse at 75% 40%, rgba(245,158,11,.1) 0%, transparent 55%);
  pointer-events: none;
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4);
  border-radius: 99px; padding: 7px 20px; margin-bottom: 22px;
  color: #f59e0b; font-size: 13px; font-weight: 700; letter-spacing: .5px;
}
.blog-hero-title {
  color: #fff;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 900; margin: 0 0 18px; line-height: 1.15;
}
.blog-hero-title span { color: #f59e0b; }
.blog-hero-sub {
  color: rgba(255,255,255,.72); font-size: 17px;
  max-width: 580px; margin: 0 auto 32px; line-height: 1.7;
}
.blog-hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.blog-hero-stat {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: #e2e8f0; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 99px;
}

/* ── Category filter tabs ───────────────────────────────────────────────── */
.blog-filter-wrap {
  background: #fff; border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 62px; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.blog-filter-inner {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 14px 0;
  scrollbar-width: none;
}
.blog-filter-inner::-webkit-scrollbar { display: none; }
.blog-tab {
  flex-shrink: 0; padding: 8px 20px; border-radius: 99px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1.5px solid #e2e8f0; background: #fff; color: #374151;
  transition: all .2s; white-space: nowrap; font-family: inherit;
}
.blog-tab:hover { border-color: #1a56db; color: #1a56db; }
.blog-tab.active { background: #060e38; color: #fff; border-color: #060e38; }

/* ── Featured post card ─────────────────────────────────────────────────── */
.blog-featured-wrap { padding: 56px 0 0; }
.blog-featured-label {
  font-size: 13px; font-weight: 700; color: #6b7280;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.blog-featured-label::after {
  content: ''; flex: 1; height: 1px; background: #e5e7eb;
}
.blog-featured-card {
  background: #fff; border-radius: 20px;
  box-shadow: 0 8px 40px rgba(6,14,56,.12);
  overflow: hidden; display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 400px;
  border: 1px solid rgba(6,14,56,.06);
  transition: transform .3s, box-shadow .3s;
}
.blog-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 56px rgba(6,14,56,.18);
}
.blog-featured-img-wrap { overflow: hidden; position: relative; }
.blog-featured-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
}
.blog-featured-card:hover .blog-featured-img-wrap img { transform: scale(1.04); }
.blog-featured-new-badge {
  position: absolute; top: 16px; left: 16px;
  background: #f59e0b; color: #060e38; font-size: 11px;
  font-weight: 800; padding: 5px 14px; border-radius: 99px;
  letter-spacing: .5px; text-transform: uppercase;
}
.blog-featured-content {
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-featured-meta {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.blog-featured-read-time { font-size: 12px; color: #6b7280; font-weight: 600; }
.blog-featured-title {
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800;
  color: #060e38; margin: 0 0 16px; line-height: 1.3;
}
.blog-featured-title a { color: inherit; text-decoration: none; }
.blog-featured-title a:hover { color: #1a56db; }
.blog-featured-excerpt {
  color: #4b5563; font-size: 15px; line-height: 1.75;
  margin: 0 0 28px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-featured-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.blog-featured-date { color: #9ca3af; font-size: 13px; }
.blog-read-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #060e38; color: #fff; font-size: 14px; font-weight: 700;
  padding: 11px 24px; border-radius: 9px; text-decoration: none;
  transition: background .2s, transform .2s;
}
.blog-read-btn:hover { background: #1a56db; transform: translateX(2px); }

/* ── Post grid ──────────────────────────────────────────────────────────── */
.blog-grid-wrap { padding: 44px 0 72px; }
.blog-grid-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.blog-grid-heading { font-size: 22px; font-weight: 800; color: #060e38; }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.blog-card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 20px rgba(6,14,56,.07);
  border: 1px solid rgba(6,14,56,.06);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(6,14,56,.15);
}
.blog-card-img-wrap { overflow: hidden; aspect-ratio: 16/9; }
.blog-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.06); }
.blog-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
}
.blog-read-time { color: #9ca3af; font-size: 12px; font-weight: 600; }
.blog-card-title {
  font-size: 17px; font-weight: 700; color: #060e38; margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-excerpt {
  color: #6b7280; font-size: 14px; line-height: 1.65; flex: 1; margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid #f1f5f9;
}
.blog-card-date { color: #9ca3af; font-size: 12px; }
.blog-card-link {
  color: #1a56db; font-size: 13px; font-weight: 700;
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.blog-card-link:hover { color: #060e38; }

/* ── No posts state ─────────────────────────────────────────────────────── */
.blog-no-posts {
  text-align: center; padding: 80px 20px; grid-column: 1/-1;
}
.blog-no-posts-icon { font-size: 56px; margin-bottom: 16px; }
.blog-no-posts-title { font-size: 22px; font-weight: 800; color: #060e38; margin-bottom: 10px; }
.blog-no-posts-sub { color: #6b7280; font-size: 15px; }

/* ══════════════════════════════════════════════════════════════════════
   BLOG ARTICLE PAGE
   ══════════════════════════════════════════════════════════════════════ */

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.blog-breadcrumb-bar {
  background: #fff; border-bottom: 1px solid #f1f5f9; padding: 13px 0;
}
.blog-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #9ca3af; flex-wrap: wrap;
}
.blog-breadcrumb a { color: #1a56db; text-decoration: none; font-weight: 500; }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb-sep { color: #d1d5db; }
.blog-breadcrumb-current { color: #374151; font-weight: 600; }

/* ── Article outer ──────────────────────────────────────────────────────── */
.blog-article-outer { background: #f8faff; padding: 48px 0 80px; }
.blog-article-inner { max-width: 840px; margin: 0 auto; }

/* ── Cover image ────────────────────────────────────────────────────────── */
.blog-cover-wrap {
  border-radius: 20px; overflow: hidden; margin-bottom: 40px;
  aspect-ratio: 16/9;
  box-shadow: 0 8px 40px rgba(6,14,56,.14);
}
.blog-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Article header ─────────────────────────────────────────────────────── */
.blog-article-header { margin-bottom: 36px; }
.blog-article-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-bottom: 18px;
}
.blog-article-meta-sep { color: #d1d5db; }
.blog-article-date,
.blog-article-readtime,
.blog-article-author-name { color: #6b7280; font-size: 13px; font-weight: 500; }
.blog-article-title {
  font-size: clamp(26px, 4vw, 42px); font-weight: 900;
  color: #060e38; margin: 0 0 20px; line-height: 1.18;
}
.blog-article-intro {
  font-size: 19px; color: #4b5563; line-height: 1.75;
  border-left: 4px solid #f59e0b; padding: 4px 0 4px 20px; margin: 0 0 22px;
}
.blog-article-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag {
  background: rgba(26,86,219,.08); color: #1a56db;
  font-size: 12px; font-weight: 600; padding: 5px 14px;
  border-radius: 99px; text-decoration: none;
  border: 1px solid rgba(26,86,219,.15);
  transition: all .2s;
}
.blog-tag:hover { background: #1a56db; color: #fff; }

/* ── Article body typography ────────────────────────────────────────────── */
.blog-article-body {
  font-size: 17px; line-height: 1.9; color: #374151;
  margin-bottom: 40px;
}
.blog-article-body h2 {
  font-size: clamp(20px, 3vw, 27px); font-weight: 800; color: #060e38;
  margin: 52px 0 18px; padding-left: 18px;
  border-left: 4px solid #f59e0b; line-height: 1.3;
}
.blog-article-body h3 {
  font-size: clamp(17px, 2.5vw, 21px); font-weight: 700; color: #060e38;
  margin: 34px 0 14px;
}
.blog-article-body p { margin: 0 0 22px; }
.blog-article-body ul,
.blog-article-body ol { padding-left: 28px; margin: 0 0 22px; }
.blog-article-body li { margin-bottom: 10px; }
.blog-article-body strong { color: #060e38; font-weight: 700; }
.blog-article-body a { color: #1a56db; font-weight: 600; }
.blog-article-body a:hover { color: #060e38; }
.blog-article-body blockquote {
  border-left: 4px solid #f59e0b;
  background: rgba(245,158,11,.06);
  padding: 18px 22px; margin: 32px 0;
  border-radius: 0 10px 10px 0;
  font-style: italic; color: #4b5563;
}
.blog-article-body blockquote p { margin: 0; }
.blog-article-body img {
  width: 100%; border-radius: 14px;
  margin: 28px 0; display: block;
  box-shadow: 0 4px 20px rgba(6,14,56,.1);
}

/* highlight box inside article */
.blog-highlight {
  background: linear-gradient(135deg,rgba(26,86,219,.07),rgba(6,14,56,.04));
  border: 1px solid rgba(26,86,219,.15);
  border-radius: 12px; padding: 22px 26px; margin: 32px 0;
}
.blog-highlight p { margin: 0; }

/* ── Author box ─────────────────────────────────────────────────────────── */
.blog-author-box {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 26px; margin: 52px 0 32px;
  box-shadow: 0 2px 12px rgba(6,14,56,.06);
}
.blog-author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #060e38, #1a56db);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.blog-author-name { font-size: 16px; font-weight: 700; color: #060e38; margin-bottom: 4px; }
.blog-author-role { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* ── Share buttons ──────────────────────────────────────────────────────── */
.blog-share-wrap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9; margin-bottom: 40px;
}
.blog-share-label { font-size: 14px; font-weight: 700; color: #060e38; margin-right: 4px; }
.blog-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; padding: 9px 18px;
  border-radius: 8px; text-decoration: none; cursor: pointer;
  border: none; font-family: inherit; transition: opacity .2s, transform .15s;
}
.blog-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.blog-share-wa   { background: #25d366; color: #fff; }
.blog-share-fb   { background: #1877f2; color: #fff; }
.blog-share-copy { background: #f1f5f9; color: #374151; }

/* ── Course CTA box ─────────────────────────────────────────────────────── */
.blog-cta-box {
  background: linear-gradient(135deg, #060e38 0%, #0f1f6e 100%);
  border-radius: 22px; padding: 44px 40px;
  margin: 52px 0; color: #fff; text-align: center;
  box-shadow: 0 12px 40px rgba(6,14,56,.3);
}
.blog-cta-badge {
  display: inline-block;
  background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.4);
  color: #f59e0b; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 99px; margin-bottom: 18px; letter-spacing: .5px;
}
.blog-cta-title { font-size: clamp(20px,3vw,26px); font-weight: 900; margin: 0 0 12px; }
.blog-cta-sub { color: rgba(255,255,255,.72); font-size: 15px; margin: 0 0 26px; line-height: 1.6; }
.blog-cta-courses {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px;
}
.blog-cta-course-pill {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 20px; border-radius: 99px; text-decoration: none;
  transition: background .2s;
}
.blog-cta-course-pill:hover { background: rgba(255,255,255,.22); color: #fff; }
.blog-cta-main-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #f59e0b; color: #060e38; font-size: 16px; font-weight: 800;
  padding: 15px 36px; border-radius: 12px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.blog-cta-main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
}

/* ── Related posts ──────────────────────────────────────────────────────── */
.blog-related-outer { background: #fff; padding: 60px 0 80px; }
.blog-related-head {
  display: flex; align-items: center; gap: 16px;
  font-size: 24px; font-weight: 800; color: #060e38;
  margin-bottom: 32px;
}
.blog-related-head::after {
  content: ''; flex: 1; height: 2px; background: #f1f5f9;
}
.blog-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-grid            { grid-template-columns: repeat(2,1fr); }
  .blog-related-grid    { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .blog-hero            { padding: 60px 0 44px; }
  .blog-featured-card   { grid-template-columns: 1fr; min-height: auto; }
  .blog-featured-img-wrap { height: 230px; }
  .blog-featured-content { padding: 26px 24px 30px; }
  .blog-grid            { grid-template-columns: 1fr; }
  .blog-related-grid    { grid-template-columns: 1fr; }
  .blog-article-body h2 { font-size: 21px; }
  .blog-cta-box         { padding: 30px 22px; }
  .blog-author-box      { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .blog-filter-wrap     { top: 56px; }
  .blog-featured-foot   { flex-direction: column; align-items: flex-start; }
  .blog-share-wrap      { flex-direction: column; align-items: flex-start; }
}
