/* ═══════════════════════════════════════════════════════════
   NOVAM LEGAL — BLOG LISTING PAGE CSS
   Depends on: global.css
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.blog-hero {
  background: var(--navy-dark);
  padding: 32px 0 0;
}
.blog-hero h1,
.blog-hero-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.blog-hero .container > p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}

/* ── Category Tabs (inside container — left-aligned with heading) */
.blog-tabs {
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
  scrollbar-width: none;
  margin-top: 20px;
  margin-left: calc(-1 * var(--sp-2)); /* optically align tab text with heading */
}
.blog-tabs::-webkit-scrollbar { display: none; }
.blog-tab {
  flex-shrink: 0;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  background: none;
  font-family: var(--font-body);
}
.blog-tab:hover { color: rgba(255,255,255,0.8); }
.blog-tab.active {
  color: var(--white);
  border-bottom-color: var(--blue);
  font-weight: 600;
}

/* ── Main Layout ─────────────────────────────────────────── */
.blog-layout {
  padding: 28px 0 80px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}

/* ── Featured Card ───────────────────────────────────────── */
.featured-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #1A237E 0%, #1565C0 55%, #1E88E5 100%);
  display: grid;
  grid-template-columns: 1fr 180px;
  cursor: pointer;
  transition: box-shadow 0.2s;
  margin-bottom: 28px;
  text-decoration: none;
}
.featured-card:hover { box-shadow: 0 16px 48px rgba(26,35,126,0.3); }
.featured-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.featured-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}
.featured-tag::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.featured-body h2 {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  letter-spacing: -0.2px;
}
.featured-body > p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  max-width: 480px;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.featured-meta span { display: flex; align-items: center; gap: 5px; }
.featured-meta .material-symbols-outlined { font-size: 14px; }
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--white);
  color: var(--navy-dark);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 4px;
  transition: background 0.15s, transform 0.15s;
}
.featured-cta:hover { background: rgba(255,255,255,0.9); transform: translateX(2px); }
.featured-cta .material-symbols-outlined { font-size: 16px; }
.featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.featured-visual::before {
  content: '';
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -60px; right: -60px;
}
.featured-icon-big {
  font-size: 80px !important;
  color: rgba(255,255,255,0.15);
  z-index: 1;
}

/* ── Article Sections ────────────────────────────────────── */
.blog-section { margin-bottom: 36px; }
.blog-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}

/* ── Blog Card Grid ──────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(41,98,255,0.08);
  transform: translateY(-2px);
}
.blog-card-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A237E, #283593);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img .material-symbols-outlined {
  font-size: 36px;
  color: rgba(255,255,255,0.5);
  z-index: 1;
}
/* Category colour coding */
.blog-card[data-cat="startup"]    .blog-card-img { background: linear-gradient(135deg, #1A237E, #283593); }
.blog-card[data-cat="compliance"] .blog-card-img { background: linear-gradient(135deg, #0D47A1, #1565C0); }
.blog-card[data-cat="ip"]         .blog-card-img { background: linear-gradient(135deg, #1B5E20, #2E7D32); }
.blog-card[data-cat="documents"]  .blog-card-img { background: linear-gradient(135deg, #4A148C, #6A1B9A); }
.blog-card[data-cat="personal"]   .blog-card-img { background: linear-gradient(135deg, #BF360C, #D84315); }
.blog-card-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}
.blog-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.blog-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue);
}
.blog-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900, #212121);
  line-height: 1.4;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--gray-400);
}
.blog-card-meta span { display: flex; align-items: center; gap: 3px; }
.blog-card-meta .material-symbols-outlined { font-size: 12px; }

/* ── Pagination ──────────────────────────────────────────── */
.blog-pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.blog-pagination .nav-links { display: flex; gap: 8px; }
.blog-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.15s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
}

.blog-empty { text-align: center; color: var(--gray-400); padding: 48px 0; }

/* ── Sidebar ─────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 24px; }
.blog-lead-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
}
.blog-lead-head {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.blog-lead-head h4 { font-size: 16px; font-weight: 700; color: var(--navy-dark); margin-bottom: 3px; }
.blog-lead-head p  { font-size: 12px; color: var(--gray-400); }
.blog-lead-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-lead-divider::before,
.blog-lead-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.blog-lead-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  color: var(--navy-dark);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.blog-lead-call:hover { border-color: var(--navy); background: var(--blue-tint); }
.blog-lead-call .material-symbols-outlined { font-size: 18px; color: var(--blue); }
.blog-trust { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-100); }
.blog-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-500);
  padding: 4px 0;
}
.blog-trust-item .material-symbols-outlined { font-size: 14px; color: var(--blue); }

/* ══ SINGLE POST ══════════════════════════════════════════ */

/* Post hero */
.post-hero {
  background: var(--navy-dark);
  padding: 32px 0 36px;
}
.post-hero[data-cat="startup"]    { background: linear-gradient(135deg, #1A237E, #283593); }
.post-hero[data-cat="compliance"] { background: linear-gradient(135deg, #0D47A1, #1565C0); }
.post-hero[data-cat="ip"]         { background: linear-gradient(135deg, #1B5E20, #2E7D32); }
.post-hero[data-cat="documents"]  { background: linear-gradient(135deg, #4A148C, #6A1B9A); }
.post-hero[data-cat="personal"]   { background: linear-gradient(135deg, #BF360C, #D84315); }

.post-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.post-cat-tag::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.post-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin-bottom: 16px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.post-meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
.post-meta-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}
.post-meta-sep { color: rgba(255,255,255,0.25); }

/* Post layout — content + sidebar */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
  padding: 36px 0 64px;
}

/* Featured image */
.post-featured-img {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}
.post-featured-img img { width: 100%; display: block; }

/* Post body typography */
.post-body { max-width: 100%; }
.post-body p  { font-size: 16px; color: var(--gray-600); line-height: 1.85; margin-bottom: 20px; }
.post-body h2 { font-size: 24px; font-weight: 700; color: var(--navy-dark); margin: 36px 0 14px; }
.post-body h3 { font-size: 20px; font-weight: 700; color: var(--navy-dark); margin: 28px 0 12px; }
.post-body ul,
.post-body ol  { margin: 16px 0 20px 24px; }
.post-body li  { font-size: 16px; color: var(--gray-600); line-height: 1.75; margin-bottom: 8px; }
.post-body strong { color: var(--navy-dark); }
.post-body a   { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--blue-tint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--navy-dark);
}

/* Tags */
.post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.post-tags .material-symbols-outlined { font-size: 18px; color: var(--gray-400); }
.post-tag {
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  transition: background 0.15s, color 0.15s;
}
.post-tag:hover { background: var(--blue-tint); color: var(--blue); }

/* Author box */
.post-author-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  margin: 24px 0;
}
.post-author-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.post-author-info strong { display: block; font-size: 15px; color: var(--navy-dark); margin-bottom: 4px; }
.post-author-info p  { font-size: 13px; color: var(--gray-500); margin: 0; }

/* Post navigation */
.post-nav {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}
.post-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.post-nav-item:hover { border-color: var(--blue); background: var(--blue-tint); }
.post-nav-next { text-align: right; }
.post-nav-dir {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
}
.post-nav-next .post-nav-dir { justify-content: flex-end; }
.post-nav-dir .material-symbols-outlined { font-size: 14px; }
.post-nav-title { font-size: 13px; font-weight: 600; color: var(--navy-dark); line-height: 1.4; }

/* Sidebar */
.post-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }

/* Related articles in sidebar */
.post-sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
}
.post-sidebar-related { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: 16px; }
.post-sidebar-article {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  transition: opacity 0.15s;
  align-items: flex-start;
}
.post-sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }
.post-sidebar-article:hover { opacity: 0.75; }
.psa-img {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  display: grid; place-items: center;
}
.psa-img img { width: 100%; height: 100%; object-fit: cover; }
.psa-img .material-symbols-outlined { font-size: 22px; color: rgba(255,255,255,0.5); }
.psa-title { font-size: 13px; font-weight: 600; color: var(--navy-dark); line-height: 1.4; margin-bottom: 4px; }
.psa-meta  { font-size: 11px; color: var(--gray-400); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-layout   { grid-template-columns: 1fr; }
  .blog-sidebar  { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { display: none; }
  .post-layout   { grid-template-columns: 1fr; }
  .post-sidebar  { display: none; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .blog-layout { padding: 20px 0 80px; }
  .blog-card-img { height: 100px; }
  .featured-body { padding: 24px 20px; }
  .blog-tabs { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
}
