/* ═══════════════════════════════════════════
   BLOG LISTING PAGE
════════════════════════════════════════════ */

/* ── Hero ── */
.blog-hero {
  background: #fff;
  padding: 100px 0 36px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.blog-hero-shapes { display: none; }
.blog-hero-inner { position: relative; z-index: 2; text-align: center; color: #0f172a; }
.blog-hero-inner h1 { font-size: clamp(22px,2.5vw,34px); font-weight: 700; margin-bottom: 12px; color: #0f172a; }
.blog-hero-inner p { font-size: 15px; color: #64748b; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ── Main Layout ── */
.blog-main { padding: 80px 0 100px; background: #f8fafc; }
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── Filters ── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
}
.blog-filter {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .2px;
}
.blog-filter:hover { color: #1d4ed8; background: #fff; }
.blog-filter.active {
  background: #fff;
  color: #1d4ed8;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

/* ── Blog Grid ── */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.blog-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  gap: 0;
  transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.blog-card-img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 220px;
  text-decoration: none;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.blog-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}
.blog-card-body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}
.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 12px;
  font-weight: 500;
}
.blog-card-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card-body h2 a { color: inherit; transition: color .2s; }
.blog-card-body h2 a:hover { color: #1d4ed8; }
.blog-card-body p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.75;
  margin-bottom: 18px;
}
.blog-read-more {
  font-size: 14px;
  font-weight: 600;
  color: #1d4ed8;
  transition: gap .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}
.blog-read-more:hover { gap: 8px; }

/* ── Sidebar ── */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.sidebar-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}
.sidebar-search {
  display: flex;
  gap: 8px;
}
.sidebar-search input {
  flex: 1;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: #1e293b;
  outline: none;
  transition: border-color .2s;
}
.sidebar-search input:focus { border-color: #1d4ed8; }
.sidebar-search button {
  background: #1d4ed8;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.sidebar-search button:hover { background: #1e40af; }
.sidebar-cats { display: flex; flex-direction: column; gap: 10px; }
.sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all .2s;
  font-weight: 500;
}
.sidebar-cats li a:hover { background: #eff6ff; color: #1d4ed8; }
.sidebar-cats li a span {
  background: #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.sidebar-recent { display: flex; flex-direction: column; gap: 14px; }
.sidebar-recent li a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 3px;
  transition: color .2s;
}
.sidebar-recent li a:hover { color: #1d4ed8; }
.sidebar-recent li span { font-size: 11px; color: #94a3b8; }
.sidebar-cta { background: linear-gradient(135deg,#0f172a,#1d4ed8); border-color: transparent; }
.sidebar-cta h4 { color: #fff; border-bottom-color: rgba(255,255,255,.15); }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.75); }

/* ═══════════════════════════════════════════
   BLOG POST PAGE
════════════════════════════════════════════ */
.post-hero {
  background: #fff;
  padding: 100px 0 36px;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.post-hero-inner {
  position: relative;
  z-index: 2;
  color: #0f172a;
  max-width: 760px;
}
.post-cat-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-hero-inner h1 {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
  color: #0f172a;
  letter-spacing: -.3px;
}
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}
.post-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* Breadcrumb override for white bg */
.post-hero .about-breadcrumb {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.post-hero .about-breadcrumb a { color: #64748b; }
.post-hero .about-breadcrumb a:hover { color: #1d4ed8; }
.post-hero .about-breadcrumb span { color: #cbd5e1; }
.post-cat-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* Post Layout */
.post-main { padding: 56px 0 80px; background: #f1f5f9; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* Article Content */
.post-content {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 40px 48px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.post-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 32px 0 12px;
  line-height: 1.35;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}
.post-content h2:first-of-type { margin-top: 8px; }
.post-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1d4ed8;
  margin: 24px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-content h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #1d4ed8;
  border-radius: 2px;
  flex-shrink: 0;
}
.post-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.9;
  margin-bottom: 16px;
}
.post-content code {
  background: #f1f5f9;
  color: #1d4ed8;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
}
/* Don't style code inside pre blocks */
.post-content pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
  border-radius: 0;
  font-weight: 400;
}
.post-content ul, .post-content ol {
  padding-left: 0;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content ul { list-style: none; }
.post-content ul li {
  padding-left: 22px;
  position: relative;
  font-size: 14.5px;
  color: #374151;
  line-height: 1.75;
}
.post-content ul li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  top: 3px;
}
.post-content ol { padding-left: 20px; }
.post-content ol li { font-size: 14.5px; color: #374151; line-height: 1.75; }
.post-callout {
  background: #eff6ff;
  border-left: 3px solid #1d4ed8;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
  color: #1e40af;
  font-weight: 500;
  line-height: 1.7;
}
.post-callout.warning {
  background: #fff7ed;
  border-left-color: #f59e0b;
  color: #92400e;
}
.post-divider { border: none; border-top: 1px solid #e2e8f0; margin: 28px 0; }

/* Tags & Share */
.post-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.post-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  transition: all .2s;
}
.post-tag:hover { background: #dbeafe; color: #1d4ed8; }
.post-share { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; font-weight: 600; }
.share-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all .2s;
  border: 1.5px solid #e2e8f0;
  color: #475569;
}
.share-btn:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

/* Author Box */
.post-author {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1d4ed8,#3b82f6);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid #f59e0b;
}
.author-info strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.author-info span { font-size: 11px; color: #1d4ed8; font-weight: 600; display: block; margin-bottom: 7px; }
.author-info p { font-size: 13px; color: #64748b; line-height: 1.6; margin: 0; }

/* Related Posts */
.post-related { margin-top: 40px; }
.post-related h3 { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.related-card-img {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.related-card-body { padding: 14px; }
.related-card-body h4 { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 5px; line-height: 1.4; }
.related-card-body h4 a { color: inherit; transition: color .2s; }
.related-card-body h4 a:hover { color: #1d4ed8; }
.related-card-body span { font-size: 11px; color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-layout, .post-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .blog-card { flex-direction: column; }
  .blog-card-img-wrap { width: 100%; }
  .blog-card-img { min-height: 140px; }
  .post-content { padding: 28px 20px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-footer { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════
   BLOG-SPECIFIC NAVBAR
════════════════════════════════════════════ */
.blog-navbar .nav-menu a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
}
.blog-navbar .nav-menu a.active {
  color: #f59e0b;
}
.blog-navbar .nav-menu a.active::after {
  width: 100%;
}
.blog-back-link {
  color: rgba(255,255,255,.5) !important;
  font-size: 12.5px !important;
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 20px !important;
  margin-left: 8px;
}
.blog-back-link:hover {
  color: #f59e0b !important;
}

/* ═══════════════════════════════════════════
   BLOG MINIMAL FOOTER
════════════════════════════════════════════ */
.blog-footer {
  background: #0a0f1e;
  padding: 60px 0 0;
}
.blog-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.blog-footer-logo .logo-svg {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}
.blog-footer-logo p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  max-width: 260px;
}
.blog-footer-latest h5,
.blog-footer-cats h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.blog-footer-latest ul,
.blog-footer-cats ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-footer-latest ul li a {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  transition: color .2s;
}
.blog-footer-latest ul li a:hover { color: #f59e0b; }
.blog-footer-cats ul li a {
  font-size: 13px;
  color: #64748b;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-footer-cats ul li a::before {
  content: '→';
  color: #1d4ed8;
  font-size: 12px;
}
.blog-footer-cats ul li a:hover { color: #f59e0b; }
.blog-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #475569;
}
.blog-footer-bottom a {
  color: #f59e0b;
  font-weight: 600;
  transition: opacity .2s;
}
.blog-footer-bottom a:hover { opacity: .8; }

@media (max-width: 768px) {
  .blog-footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* Blog listing hero — white bg overrides */
.blog-hero .about-breadcrumb { color: #94a3b8; justify-content: center; }
.blog-hero .about-breadcrumb a { color: #64748b; }
.blog-hero .about-breadcrumb a:hover { color: #1d4ed8; }
.blog-hero .about-breadcrumb span { color: #cbd5e1; }
.blog-hero .highlight {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
