/* 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 tokens now live only in usme-theme.css (loaded first as this file's
   dependency in functions.php) — duplicate block removed to stop the two
   stylesheets silently disagreeing on --text2/--grey/etc. across pages. */

/* ─────────────────────────────────────────────────
   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(24px, 4vw, 40px) 0 clamp(20px, 3vw, 28px);
}
.page-title {
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--dark);
  font-weight: 700;
}
.page-sub {
  font-size: 14px;
  color: var(--text3);
  margin-top: 8px;
  max-width: 480px;
}
/* ─────────────────────────────────────────────────
   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;
  box-shadow: 0 1px 4px rgba(11,20,38,.03);
  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;
  margin-top: 40px;
}
/* Category archive view: container already has padding-top, so margin-top
   on the very first child would otherwise collapse out of the container
   and stick the grid to the header. Reduce the duplicate top margin here. */
.view-category .page-header + .blog-grid { margin-top: 28px; }

/* Homepage "Latest from Blog" section reuses .blog-grid/.blog-card,
   but sits inside .section (not .view-listing), so it needs its own
   top margin reset to match the spacing of other homepage sections. */
.home-blog-grid { margin-top: 32px; }

/* ── Base card ──────────────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(11,20,38,.05);
  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;
  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-body {
  padding: clamp(32px, 5vw, 56px) clamp(28px, 4.5vw, 52px);
  gap: 0;
}
.blog-card.featured .card-title {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.22;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  letter-spacing: -.02em;
}
.blog-card.featured .card-excerpt {
  font-size: 15px;
  max-width: 640px;
  -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 — only present when a real featured image exists ── */
.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 card WITH a real image — back to the image+text split ── */
.blog-card.featured.has-thumb {
  flex-direction: row;
}
.blog-card.featured.has-thumb .card-thumb {
  width: 48%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 320px;
  border-radius: 0;
}
.blog-card.featured.has-thumb .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.has-thumb .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-card.featured.has-thumb .card-title {
  font-size: clamp(20px, 2.6vw, 28px);
}
.blog-card.featured.has-thumb .card-excerpt {
  max-width: none;
}


/* ── 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,.07);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
  align-self: flex-start;
  border: 1px solid rgba(30,79,216,.12);
}

/* ── 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 {
  content: '·';
  margin-left: 16px;
  color: var(--border);
  font-size: 13px;
  line-height: 1;
}

/* ── Read article CTA ──────────────────────────── */
.card-arrow {
  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 {
  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, share buttons, and back-link now live only in
   usme-theme.css (this file loads after it, so a duplicate copy here
   would silently win the cascade and override any fixes made there). */

/* 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 { grid-column: 1 / -1; }
  .blog-card.featured.has-thumb { flex-direction: column; }
  .blog-card.featured.has-thumb .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; }

  .filter-bar { margin-bottom: 24px; padding-bottom: 18px; }

  .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; }
  .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; }

  /* Compact horizontal "More Articles" cards on mobile —
     tall full-width thumbs were eating the screen, switch to a list layout */
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card {
    flex-direction: row;
    align-items: stretch;
    border-radius: 14px;
  }
  .related-card-thumb {
    width: 104px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }
  .related-card-body {
    padding: 12px 14px;
    justify-content: center;
  }
  .related-card-tag { margin-bottom: 6px; }
  .related-card-title {
    font-size: 13.5px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 6px;
  }
  .related-card-meta { font-size: 10.5px; }
}

@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: #ffffff; }
  .article-topbar { background: rgba(255,255,255,.92); border-color: #e5e9f0; }
  .article-topbar .topbar-title { color: #5a6478; }
  .article-topbar .topbar-divider { color: #e5e9f0; }
  .article-topbar .share-btn { background: #f3f5f9; border-color: #e5e9f0; color: #5a6478; }
  .article-topbar .share-label { color: #5a6478; }
  .callout { background: rgba(245,166,35,.08); }
  .disclaimer-note { background: rgba(255,255,255,.04); }
  .share-btn { background: #f3f5f9; border-color: #e5e9f0; color: #5a6478; }
  .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); }
}

@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 — Pagination  (v3.3)
══════════════════════════════════════════════════════════════ */

/* Pagination nav itself must never render a card/box behind it —
   only the individual number/pill buttons have background. */
.usme-pagination {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

/* 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: 44px;
  height: 44px;
  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), transform var(--speed), box-shadow var(--speed);
}
.usme-pagination .page-numbers a:hover {
  background: #E3F7F1;
  color: #0C8577;
  border-color: #BFEDE1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(12,133,119,0.15);
}
.usme-pagination .page-numbers .current {
  background: linear-gradient(135deg, #14B8A6 0%, #0C8577 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(12,133,119,0.35);
  cursor: default;
}
.usme-pagination .page-numbers .dots {
  border: none;
  background: transparent;
  cursor: default;
}


