/* USME Campus Theme — Blog Stylesheet (v2) */
/* Layout Blog_Page_v2.html se copy kiya — sirf structure, content nahi */

/* ─────────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg:           #F5F7FC;
  --surface:      #FFFFFF;
  --dark:         #0B1426;
  --dark-mid:     #16213C;
  --blue:         #1E4FD8;
  --blue-hover:   #1743B8;
  --blue-light:   #EBF0FF;
  --blue-mid:     #4B72F0;
  --green:        #25D366;
  --green-hover:  #1FB855;
  --amber:        #F5A623;
  --amber-light:  #FFF8ED;
  --grey:         #EEF0F7;
  --grey2:        #E0E4EF;
  --text:         #0B1426;
  --text2:        #3D4A63;
  --text3:        #7B879A;
  --border:       #DDE2EE;
  --border-hover: #B4C4F4;
  --shadow-sm:    0 2px 8px rgba(11,20,38,.07);
  --shadow-md:    0 8px 28px rgba(11,20,38,.10);
  --shadow-lg:    0 18px 48px rgba(11,20,38,.14);
  --shadow-blue:  0 6px 24px rgba(30,79,216,.32);
  --radius-card:  16px;
  --radius-pill:  50px;
  --radius-sm:    8px;
  --speed:        0.2s;
  --ease:         cubic-bezier(.25,.8,.25,1);
}

/* ─────────────────────────────────────────────────
   BASE
───────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; color: var(--dark); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ─────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ─────────────────────────────────────────────────
   READING PROGRESS BAR
───────────────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  z-index: 1000;
  transition: width .1s linear;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────
   STICKY MINI-HEADER (single post)
───────────────────────────────────────────────── */
.article-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.article-topbar.visible { display: block; }
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-back {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: gap var(--speed), background var(--speed);
  text-decoration: none;
}
.topbar-back:hover { gap: 8px; background: var(--blue-light); }
.topbar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.topbar-divider { color: var(--border); }

/* ─────────────────────────────────────────────────
   PAGE HEADER (blog listing)
───────────────────────────────────────────────── */
.page-header {
  padding: clamp(32px, 6vw, 56px) 0 clamp(28px, 4vw, 40px);
}
.page-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.page-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.page-title {
  font-size: clamp(26px, 4.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--dark);
}
.page-sub {
  font-size: 15px;
  color: var(--text3);
  margin-top: 12px;
  max-width: 480px;
}
.post-count {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────
   FILTER TABS
───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.filter-tab {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text2);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--speed), color var(--speed), border-color var(--speed), box-shadow var(--speed), transform var(--speed);
  white-space: nowrap;
  line-height: 1;
}
.filter-tab:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: var(--blue-light);
  transform: translateY(-1px);
}
.filter-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(30,79,216,.28);
}

/* ─────────────────────────────────────────────────
   BLOG GRID
───────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}

/* ── Base card ──────────────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2),
              box-shadow .35s ease,
              border-color .25s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
  position: relative;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(30,79,216,.13), 0 4px 16px rgba(11,20,38,.08);
  border-color: rgba(30,79,216,.22);
}
.blog-card.hidden { display: none; }

/* ── Featured card ─────────────────────────────── */
.blog-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  border-radius: 24px;
  border: 1px solid rgba(30,79,216,.12);
  box-shadow: 0 4px 24px rgba(11,20,38,.07);
  background: #fff;
}
.blog-card.featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 64px rgba(30,79,216,.16), 0 6px 20px rgba(11,20,38,.08);
  border-color: rgba(30,79,216,.28);
}
.blog-card.featured .card-thumb {
  width: 48%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 320px;
  border-radius: 0;
}
/* Gradient overlay on featured thumb for visual depth */
.blog-card.featured .card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(30,79,216,.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.blog-card.featured .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4.5vw, 52px);
  gap: 0;
}
.blog-card.featured .card-title {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.25;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  letter-spacing: -.02em;
}
.blog-card.featured .card-excerpt {
  -webkit-line-clamp: 4;
  line-clamp: 4;
}
.blog-card.featured .card-arrow {
  margin-top: 28px;
}

/* Regular cards */
.blog-card:not(.featured) { grid-column: span 4; }

/* ── Thumbnail ─────────────────────────────────── */
.card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--grey);
  position: relative;
  flex-shrink: 0;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,.68,0,1.1);
}
.blog-card:hover .card-thumb img { transform: scale(1.07); }

/* ── Featured badge — glass style ─────────────── */
.featured-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  background: rgba(11,20,38,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.18);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* ── Thumb placeholder — rich gradient ─────────── */
.card-thumb-placeholder,
.card-thumb--placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dce6ff 0%, #c8d8ff 50%, #e8edff 100%);
}
.card-thumb-placeholder svg { opacity: .25; }
.thumb-placeholder-icon { font-size: 44px; opacity: .22; }

/* ── Card body ─────────────────────────────────── */
.card-body {
  padding: 28px 28px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Category tag — refined pill ──────────────── */
.card-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(30,79,216,.08);
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 14px;
  align-self: flex-start;
  border: 1px solid rgba(30,79,216,.15);
}

/* ── Card title — editorial ────────────────────── */
.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  line-height: 1.28;
  margin-bottom: 12px;
  letter-spacing: -.015em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.blog-card:hover .card-title a { color: var(--blue); }

/* ── Excerpt ───────────────────────────────────── */
.card-excerpt {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Meta — minimal inline style ──────────────── */
.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}
.card-meta .meta-dot { display: none; }
.card-meta span:not(.meta-dot),
.card-meta time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: .01em;
  /* No background — clean minimal style */
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
/* Date icon */
.card-meta span:not(.meta-dot):first-child::before,
.card-meta time::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B879A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  opacity: .75;
}
/* Clock icon */
.card-meta span:not(.meta-dot):last-child::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B879A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  opacity: .75;
}
/* Separator dot between meta items */
.card-meta span:not(.meta-dot):first-child::after,
.card-meta time::after {
  content: '·';
  margin-left: 16px;
  color: var(--border);
  font-size: 13px;
  line-height: 1;
}

/* ── Read article CTA ──────────────────────────── */
.card-arrow, .card-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dark);
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 10px 20px;
  border-radius: 50px;
  margin-top: 22px;
  align-self: flex-start;
  text-decoration: none;
  letter-spacing: .01em;
  transition: background .25s ease,
              color .25s ease,
              border-color .25s ease,
              gap .25s ease,
              box-shadow .25s ease,
              transform .25s ease;
}
.card-arrow svg {
  width: 13px; height: 13px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.blog-card:hover .card-arrow,
.blog-card:hover .card-read-more {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  gap: 10px;
  box-shadow: 0 8px 20px -4px rgba(30,79,216,.4);
  transform: translateY(-1px);
}
.blog-card:hover .card-arrow svg { transform: translateX(3px); }

/* ─────────────────────────────────────────────────
   EMPTY / FILTER STATES
───────────────────────────────────────────────── */
.empty-state,
.filter-empty-state {
  display: none;
  text-align: center;
  padding: 64px 24px;
  color: var(--text3);
  font-size: 14px;
  border: 1.5px dashed var(--grey2);
  border-radius: var(--radius-card);
  grid-column: 1 / -1;
}
.empty-state.show,
.filter-empty-state.show { display: block; }
.empty-icon { font-size: 32px; margin-bottom: 12px; opacity: .5; }
.empty-title { color: var(--text2); font-weight: 700; font-size: 16px; margin-bottom: 6px; }

/* ─────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
  transition: all var(--speed) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30,79,216,.42);
}
.btn-wa {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.25);
}
.btn-wa:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────
   CTA BLOCK
───────────────────────────────────────────────── */
.cta-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(145deg, #0B1426 0%, #122040 55%, #0B1426 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 22px;
  padding: clamp(32px, 6vw, 56px) clamp(28px, 6vw, 60px);
  margin: 64px 0;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 28px 60px -24px rgba(11,20,38,.7);
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -60%; right: -5%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(75,114,240,.28) 0%, transparent 70%);
  pointer-events: none;
}
.cta-block::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -3%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(30,79,216,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; max-width: 500px; }
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(75,114,240,.18);
  color: #A9BEFF;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cta-block h2 { color: #fff; font-size: clamp(20px, 3vw, 27px); line-height: 1.25; margin-bottom: 12px; }
.cta-block p { color: rgba(255,255,255,.58); font-size: 14.5px; }
.cta-btns {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────
   ARTICLE VIEW (single.php)
───────────────────────────────────────────────── */
.article-shell {
  background: var(--surface);
  min-height: 60vh;
  padding-bottom: 40px;
}

/* Breadcrumb */
.breadcrumb {
  padding: 28px 0 0;
  font-size: 12.5px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); transition: color var(--speed); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }

/* Hero banner */
.article-banner {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  border-radius: var(--radius-card);
  margin-top: 28px;
  background: var(--grey);
  display: none;
}
.article-banner img { width: 100%; height: 440px; object-fit: cover; display: block; }
.article-banner.has-image {
  display: block;
  box-shadow: 0 20px 50px -20px rgba(11,20,38,.28);
}

/* Article hero */
.article-hero {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
}
.article-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.article-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 28px;
}

/* Article meta chips */
.article-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.meta-dot { display: none; }
.article-meta span:not(.meta-dot),
.article-meta time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  background: var(--grey2);
  border: 1.5px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 3px rgba(11,20,38,.08);
  letter-spacing: .02em;
}
/* Date chip */
.article-meta time::before,
.article-meta span:not(.meta-dot):first-child::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4A63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}
/* Read-time chip */
.article-meta span:not(.meta-dot):nth-child(2)::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4A63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}
/* Author chip */
.article-meta span:not(.meta-dot):last-child::before {
  content: '';
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233D4A63' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}

/* Article body */
.article-body {
  max-width: 740px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text2);
}
.article-body > p:first-of-type {
  font-size: 18.5px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 36px;
  font-weight: 400;
}
.article-body h2 {
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.25;
  margin: 56px 0 20px;
  color: var(--dark);
  letter-spacing: -.02em;
}
.article-body h3 {
  font-size: 17px;
  margin: 32px 0 14px;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}
.article-body p { margin-bottom: 26px; }
.article-body ul, .article-body ol { margin: 0 0 22px 24px; }
.article-body li { margin-bottom: 12px; }
.article-body strong { color: var(--dark); font-weight: 600; }

/* Inline figure */
.article-body .inline-img,
.article-body figure {
  width: 100%;
  border-radius: 12px;
  margin: 36px 0;
  overflow: hidden;
  background: var(--grey);
}
.article-body .inline-img img,
.article-body figure img { width: 100%; display: block; object-fit: cover; }
.article-body .inline-img figcaption,
.article-body figure figcaption {
  font-size: 12px;
  color: var(--text3);
  padding: 10px 16px;
  text-align: center;
  font-style: italic;
  background: var(--grey);
}

/* Callout */
.callout {
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 24px;
  margin: 32px 0;
  font-size: 14.5px;
  color: var(--text2);
}
.callout strong {
  display: block;
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: 'Inter', sans-serif;
}

/* Table */
.cutoff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 36px;
  font-size: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.cutoff-table th {
  background: var(--blue-light);
  color: var(--blue);
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #c4d3ff;
}
.cutoff-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.cutoff-table tr:last-child td { border-bottom: none; }
.cutoff-table tr:hover td { background: #fafbff; }

/* Article footer */
.article-footer {
  max-width: 740px;
  border-top: 1px solid var(--border);
  margin-top: 56px;
  margin-bottom: 56px;
  padding-top: 32px;
  padding-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.share-label {
  font-size: 12.5px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
  text-align: right;
}
.share-btns { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grey);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              color var(--speed) var(--ease);
  color: var(--text2);
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -4px rgba(11,20,38,.25); }
.share-btn[data-platform="twitter"]:hover { background: #000; border-color: #000; color: #fff; }
.share-btn[data-platform="linkedin"]:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.share-btn[data-platform="copy"]:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.share-btn[data-platform="copy"].copied { background: #1FA855; border-color: #1FA855; color: #fff; }
.share-btn .copy-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  z-index: 10;
}
.share-btn .copy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--dark);
}
.share-btn[data-platform="copy"].copied .copy-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Back link */
.back-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--speed) var(--ease),
              color var(--speed) var(--ease),
              gap var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
}
.back-link svg { width: 13px; height: 13px; flex-shrink: 0; transition: transform var(--speed) var(--ease); }
.back-link:hover {
  background: var(--blue);
  color: #fff;
  gap: 9px;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(30,79,216,.45);
}
.back-link:hover svg { transform: translateX(-2px); }

/* Disclaimer */
.disclaimer-note {
  position: relative;
  background: var(--grey);
  border-radius: var(--radius-sm);
  padding: 16px 20px 16px 46px;
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.6;
  margin-top: 40px;
  max-width: 740px;
}
.disclaimer-note::before {
  content: 'ⓘ';
  position: absolute;
  left: 18px; top: 15px;
  font-size: 14px;
  color: var(--text3);
}

/* ─────────────────────────────────────────────────
   RELATED ARTICLES
───────────────────────────────────────────────── */
.related-section { padding: 48px 0 0; }
.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.related-title { font-size: clamp(18px, 2.5vw, 24px); color: var(--dark); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.related-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.related-card-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--grey);
  flex-shrink: 0;
}
.related-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.related-card:hover .related-card-thumb img { transform: scale(1.06); }
.related-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.related-card-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
  align-self: flex-start;
}
.related-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-meta { font-size: 11px; color: var(--text3); margin-top: auto; }

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .blog-card:not(.featured) { grid-column: span 6; }
}

@media (max-width: 768px) {
  .blog-card.featured { flex-direction: column; grid-column: 1 / -1; }
  .blog-card.featured .card-thumb { width: 100%; min-height: unset; aspect-ratio: 16/9; }
  .blog-card.featured .card-body { padding: 22px; }
  .blog-card:not(.featured) { grid-column: span 6; }

  .cta-block { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px 24px; }
  .cta-copy { max-width: none; }
  .cta-btns { width: 100%; }
  .cta-btns .btn { flex: 1; justify-content: center; }

  .article-banner img { height: 240px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 600px) {
  .blog-grid { gap: 14px; }
  .blog-card:not(.featured) { grid-column: 1 / -1; }
  .filter-bar { gap: 6px; }
  .filter-tab { padding: 7px 14px; font-size: 12px; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  .cutoff-table { font-size: 13px; }
  .cutoff-table th, .cutoff-table td { padding: 10px 12px; }
  .article-banner img { height: 200px; }
  .topbar-title { display: none; }
  .topbar-divider { display: none; }
}

@media (max-width: 500px) {
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .cta-btns { flex-direction: column; }
  .cta-btns .btn { justify-content: center; }
}

@media (min-width: 1400px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1800px) {
  .container { max-width: 1440px; }
  .blog-card:not(.featured) { grid-column: span 3; }
  .blog-grid { grid-template-columns: repeat(12, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0D1424;
    --surface:      #111D33;
    --dark:         #E8EEFF;
    --dark-mid:     #C5D0EE;
    --blue-light:   rgba(30,79,216,.18);
    --grey:         #1A2640;
    --grey2:        #243050;
    --text:         #E0E8FF;
    --text2:        #A3B3D4;
    --text3:        #637090;
    --border:       #1E2F4A;
    --border-hover: #2A4080;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.3);
    --shadow-md:    0 8px 28px rgba(0,0,0,.4);
    --shadow-lg:    0 18px 48px rgba(0,0,0,.5);
  }
  .card-tag, .article-tag, .related-card-tag { background: rgba(30,79,216,.25); }
  .cutoff-table tr:hover td { background: rgba(255,255,255,.03); }
  .article-shell { background: var(--surface); }
  .article-topbar { background: rgba(17,29,51,.94); border-color: var(--border); }
  .callout { background: rgba(245,166,35,.08); }
  .disclaimer-note { background: rgba(255,255,255,.04); }
  .share-btn { background: rgba(255,255,255,.06); border-color: var(--border); color: var(--text2); }
  .cutoff-table { border-color: var(--border); }
  .cutoff-table th { background: rgba(30,79,216,.2); border-color: rgba(30,79,216,.3); }
  .cutoff-table td { border-color: var(--border); }
  .filter-tab { background: rgba(255,255,255,.06); border-color: var(--border); }
  .filter-tab:hover { background: rgba(30,79,216,.18); border-color: rgba(30,79,216,.3); }
  .card-thumb-placeholder,
  .card-thumb--placeholder { background: linear-gradient(135deg, #1a2a50 0%, #1e3060 100%); }
}

@media print {
  #progress-bar, .article-topbar, .cta-block, .article-footer, .filter-bar, .back-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .article-body { max-width: none; }
  .article-banner { max-height: none; }
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY ARCHIVE — Pro Tab Bar + Pagination  (v3.3)
   Scoped to .category-nav so main blog page is untouched.
══════════════════════════════════════════════════════════════ */

/* Wrapper: glass-morphism pill container */
.category-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 40px;
  padding: 5px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  width: fit-content;
  max-width: 100%;
}
.category-nav::-webkit-scrollbar { display: none; }

/* Each tab is an anchor — reset button defaults, match pill look */
.category-nav a.filter-tab {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text2);
  background: transparent;
  border: none;
  transition: background var(--speed), color var(--speed), box-shadow var(--speed);
  cursor: pointer;
  position: relative;
}
.category-nav a.filter-tab:hover {
  background: var(--grey);
  color: var(--dark);
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.category-nav a.filter-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(30,79,216,.35);
}

/* "All Posts" tab — slightly muted with a ← arrow */
.category-nav a.filter-tab:first-child::before {
  content: '←';
  font-size: 11px;
  opacity: .6;
  margin-right: 2px;
}

/* Paginate_links list */
.usme-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.usme-pagination .page-numbers li { display: contents; }
.usme-pagination .page-numbers a,
.usme-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  color: var(--text2);
  background: var(--surface);
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}
.usme-pagination .page-numbers a:hover {
  background: var(--blue-light);
  color: var(--blue);
  border-color: var(--blue-light);
}
.usme-pagination .page-numbers .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
  cursor: default;
}
.usme-pagination .page-numbers .dots {
  border: none;
  background: transparent;
  cursor: default;
}

/* Dark mode adjustments for the pill container */
@media (prefers-color-scheme: dark) {
  .category-nav {
    background: var(--surface);
    border-color: var(--border);
  }
  .category-nav a.filter-tab:hover {
    background: var(--grey);
    color: var(--dark);
  }
}

/* Mobile: allow horizontal scroll, don't overflow page */
@media (max-width: 600px) {
  .category-nav {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    padding: 4px;
  }
  .category-nav a.filter-tab {
    padding: 8px 14px;
    font-size: 12px;
  }
}
