/* ==========================================================================
   QXANNOT BLOG SECTION — INTERNATIONAL AI PUBLICATION DESIGN SYSTEM
   Aligned strictly with QXANNOT brand tokens (#060913 / #0a0f1d / #1d4ed8 / #00d2ff)
   Scoped cleanly to body.qx-blog-page to leave all non-blog pages untouched.
   ========================================================================== */

body.qx-blog-page {
  --qxb-bg-deep: #060913;
  --qxb-bg-navy: #0a0f1d;
  --qxb-bg-card: #0f172a;
  --qxb-bg-card-elevated: #131f3a;
  --qxb-primary: #1d4ed8;
  --qxb-primary-bright: #2563eb;
  --qxb-cyan: #00d2ff;
  --qxb-cyan-soft: #38bdf8;
  --qxb-text-heading: #f8fafc;
  --qxb-text-body: #cbd5e1;
  --qxb-text-muted: #94a3b8;
  --qxb-border: rgba(56, 189, 248, 0.2);
  --qxb-border-interactive: rgba(56, 189, 248, 0.34);
  --qxb-border-hover: rgba(0, 210, 255, 0.78);
  --qxb-surface-glass: rgba(15, 23, 42, 0.78);
  --qxb-gradient-primary: var(--qx-gradient, linear-gradient(135deg, #1d4ed8 0%, #2563eb 54%, #00d2ff 100%));
  --qxb-gradient-hover: var(--qx-gradient-hover, linear-gradient(135deg, #2563eb 0%, #0284c7 42%, #00d2ff 100%));
  --qxb-focus-ring: var(--qx-focus-ring, 0 0 0 2px #060913, 0 0 0 4px #00d2ff);
  --qxb-btn-shadow: var(--qx-btn-shadow, 0 6px 18px rgba(2, 6, 23, 0.45), 0 0 20px rgba(0, 210, 255, 0.24));
  --qxb-btn-hover-shadow: var(--qx-btn-hover-shadow, 0 10px 28px rgba(2, 6, 23, 0.52), 0 0 28px rgba(0, 210, 255, 0.44));
  --qxb-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --qxb-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--qxb-bg-deep) !important;
  color: var(--qxb-text-body) !important;
  font-family: var(--qxb-font-body) !important;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.qx-blog-page h1,
body.qx-blog-page h2,
body.qx-blog-page h3,
body.qx-blog-page h4,
body.qx-blog-page h5,
body.qx-blog-page h6 {
  font-family: var(--qxb-font-display) !important;
  color: var(--qxb-text-heading);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

body.qx-blog-page h1 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

body.qx-blog-page .footer_main h6 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Top Reading Progress Bar (Article Pages) */
.qx-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--qxb-primary-bright) 0%, var(--qxb-cyan) 100%);
  z-index: 1090;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.55);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* Header Consistency Guard inside Blog */
body.qx-blog-page .navbar {
  background-color: rgba(6, 9, 19, 0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--qxb-border);
}

/* ==========================================================================
   BLOG HERO MASTHEAD (Homepage & Archive Pages)
   ========================================================================== */
.qxb-hero {
  position: relative;
  padding: 76px 0 56px;
  background:
    radial-gradient(circle at 82% 14%, rgba(0, 210, 255, 0.14) 0%, transparent 46%),
    radial-gradient(circle at 14% 80%, rgba(29, 78, 216, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, #070b18 0%, #060913 100%);
  border-bottom: 1px solid var(--qxb-border);
  overflow: hidden;
}

.qxb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  pointer-events: none;
}

.qxb-hero .container {
  position: relative;
  z-index: 2;
}

.qxb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.09);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--qxb-cyan);
  font-family: var(--qxb-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.qxb-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--qxb-cyan);
  box-shadow: 0 0 8px var(--qxb-cyan);
}

.qxb-hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  color: #ffffff;
}

.qxb-hero-title .qxb-gradient-text {
  background: linear-gradient(95deg, #ffffff 10%, #93c5fd 55%, #00d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qxb-hero-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--qxb-text-body);
  max-width: 68ch;
  margin-bottom: 28px;
}

.qxb-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.qxb-metric-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--qxb-text-muted);
}

.qxb-metric-item strong {
  color: #ffffff;
  font-family: var(--qxb-font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.qxb-metric-item i {
  color: var(--qxb-cyan);
  font-size: 1rem;
}

/* ==========================================================================
   BREADCRUMB BAR
   ========================================================================== */
.qxb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--qxb-text-muted);
  margin-bottom: 18px;
}

.qxb-breadcrumb a {
  color: var(--qxb-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.qxb-breadcrumb a:hover {
  color: var(--qxb-cyan);
}

.qxb-breadcrumb .qxb-crumb-sep {
  opacity: 0.45;
  font-size: 0.8125rem;
}

.qxb-breadcrumb .qxb-crumb-current {
  color: var(--qxb-cyan-soft);
  font-weight: 500;
}

/* ==========================================================================
   FEATURED ARTICLE SPOTLIGHT
   ========================================================================== */
.qxb-featured-section {
  padding: 48px 0 24px;
  background-color: var(--qxb-bg-deep);
}

.qxb-featured-card {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 0;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(10, 15, 29, 0.98) 100%);
  border: 1px solid var(--qxb-border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  transition: border-color 0.3s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.qxb-featured-card:hover {
  border-color: var(--qxb-border-hover);
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.6), 0 0 32px rgba(0, 210, 255, 0.12);
}

.qxb-featured-media {
  position: relative;
  min-height: 280px;
  height: auto;
  max-height: none;
  background: radial-gradient(circle at center, #0e1a34 0%, #070c18 100%);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qxb-featured-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.qxb-featured-card:hover .qxb-featured-media img {
  transform: scale(1.015);
}

.qxb-featured-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 9, 19, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 255, 0.45);
  color: var(--qxb-cyan);
  font-family: var(--qxb-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qxb-featured-body {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.qxb-featured-title {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  font-weight: 700;
  line-height: 1.24;
  margin: 14px 0 14px;
}

.qxb-featured-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qxb-featured-title a:hover {
  color: var(--qxb-cyan);
}

.qxb-featured-excerpt {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--qxb-text-body);
  margin-bottom: 24px;
}

/* ==========================================================================
   DISCOVERY BAR: SEARCH, CATEGORY PILLS & SORT
   ========================================================================== */
.qxb-toolbar-section {
  padding: 36px 0 18px;
}

.qxb-toolbar {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--qxb-border);
  border-radius: 18px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.qxb-toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.qxb-search-wrap {
  position: relative;
  flex: 1 1 320px;
  max-width: 460px;
}

.qxb-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--qxb-cyan-soft);
  font-size: 0.95rem;
  pointer-events: none;
}

.qxb-search-input {
  width: 100%;
  background: #070c18;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  padding: 11px 16px 11px 42px;
  color: #ffffff;
  font-family: var(--qxb-font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.qxb-search-input::placeholder {
  color: #8b9cb5;
  opacity: 1;
}

.qxb-search-input:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: #0a1020;
}

.qxb-search-input:focus {
  outline: none;
  border-color: var(--qxb-cyan);
  background: #0a1020;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

.qxb-toolbar-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.qxb-results-count {
  font-size: 0.9rem;
  color: var(--qxb-text-muted);
}

.qxb-results-count strong {
  color: var(--qxb-cyan);
  font-weight: 600;
}

.qxb-sort-select {
  background-color: #070c18;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d2ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: #f8fafc;
  border-radius: 10px;
  padding: 9px 38px 9px 14px;
  font-family: var(--qxb-font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.qxb-sort-select:hover {
  border-color: rgba(56, 189, 248, 0.52);
  background-color: #0a1020;
}

.qxb-sort-select:focus {
  outline: none;
  border-color: var(--qxb-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.2);
}

.qxb-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qxb-cat-pill {
  position: relative;
  overflow: hidden;
  min-height: 38px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(15, 23, 42, 0.9);
  color: var(--qxb-text-body);
  padding: 7px 15px;
  border-radius: 999px;
  font-family: var(--qxb-font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .qxb-cat-pill:hover {
    border-color: var(--qxb-cyan);
    color: #ffffff;
    background: rgba(29, 78, 216, 0.28);
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.2);
    transform: translateY(-1px);
  }
}

.qxb-cat-pill:active {
  transform: scale(0.97);
}

.qxb-cat-pill:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
}

.qxb-cat-pill.active {
  background: var(--qxb-gradient-primary);
  border-color: var(--qxb-cyan);
  color: #ffffff;
  box-shadow: var(--qxb-btn-shadow);
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.3);
}

/* ==========================================================================
   ARTICLE CARD GRID & SHARED META ELEMENTS
   ========================================================================== */
.qxb-grid-section {
  padding: 28px 0 64px;
}

.qxb-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.qxb-section-title {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.qxb-section-sub {
  margin: 6px 0 0;
  font-size: 0.96rem;
  color: var(--qxb-text-muted);
}

.qxb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.qxb-card {
  display: flex;
  flex-direction: column;
  background: var(--qxb-bg-card);
  border: 1px solid var(--qxb-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
}

.qxb-card:hover {
  transform: translateY(-5px);
  border-color: var(--qxb-border-hover);
  background: var(--qxb-bg-card-elevated);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 210, 255, 0.12);
}

.qxb-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at center, #0e1a34 0%, #070c18 100%);
  padding: 8px;
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.qxb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.qxb-card:hover .qxb-card-media img {
  transform: scale(1.015);
}

.qxb-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.qxb-card-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.qxb-badge-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.24);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #93c5fd;
  font-family: var(--qxb-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.qxb-badge-cat:hover {
  background: rgba(0, 210, 255, 0.2);
  border-color: var(--qxb-cyan);
  color: #ffffff;
}

.qxb-badge-cat:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
}

.qxb-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.84rem;
  color: var(--qxb-text-muted);
}

.qxb-meta-row i {
  color: var(--qxb-cyan-soft);
  margin-right: 4px;
}

.qxb-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0 10px;
}

.qxb-card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.qxb-card:hover .qxb-card-title a {
  color: var(--qxb-cyan-soft);
}

.qxb-card-excerpt {
  font-size: 0.93rem;
  line-height: 1.64;
  color: var(--qxb-text-body);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.qxb-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: auto;
}

.qxb-author-mini {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--qxb-text-muted);
  text-decoration: none;
  min-width: 0;
}

.qxb-author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(8, 13, 27, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.qxb-author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.qxb-author-mini:hover .qxb-author-avatar,
.qxb-author-badge:hover .qxb-author-avatar {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 3px 12px rgba(0, 210, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.qxb-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--qxb-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--qxb-cyan-soft);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.qxb-read-link i,
.qxb-read-link svg {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .qxb-read-link:hover {
    color: #ffffff;
    gap: 10px;
  }

  .qxb-read-link:hover i,
  .qxb-read-link:hover svg {
    transform: translateX(3px);
  }
}

.qxb-read-link:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
  border-radius: 4px;
}

.qxb-btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 10px;
  background: var(--qxb-gradient-primary);
  border: 1px solid rgba(56, 189, 248, 0.54);
  box-shadow: var(--qxb-btn-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.32);
  font-family: var(--qxb-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  cursor: pointer;
}

.qxb-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -115%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.56s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .qxb-btn-primary:hover {
    background: var(--qxb-gradient-hover);
    border-color: var(--qxb-cyan);
    transform: translateY(-2px);
    box-shadow: var(--qxb-btn-hover-shadow);
    filter: brightness(1.04);
  }

  .qxb-btn-primary:hover::before {
    left: 145%;
  }
}

.qxb-btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.qxb-btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
}

.qxb-btn-primary:disabled,
.qxb-btn-primary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.qxb-btn-secondary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--qxb-border-interactive);
  color: #e2e8f0 !important;
  font-family: var(--qxb-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.1), 0 4px 12px rgba(2, 6, 23, 0.35);
  transition: all 0.22s ease;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .qxb-btn-secondary:hover {
    border-color: var(--qxb-cyan);
    color: #ffffff !important;
    background: rgba(29, 78, 216, 0.28);
    box-shadow: var(--qxb-btn-shadow);
    transform: translateY(-1px);
  }
}

.qxb-btn-secondary:active {
  transform: translateY(0) scale(0.985);
}

.qxb-btn-secondary:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
}

.qxb-btn-secondary:disabled,
.qxb-btn-secondary[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Pagination */
.qxb-pagination {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qxb-page-btn,
.qxb-pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: var(--qxb-bg-card);
  color: var(--qxb-text-body);
  font-family: var(--qxb-font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qxb-pagination span.page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
  min-width: 28px;
  padding: 0 4px;
}

.qxb-page-btn:hover,
.qxb-pagination a.page-numbers:hover {
  border-color: var(--qxb-cyan);
  color: #ffffff;
  background: rgba(29, 78, 216, 0.28);
  transform: translateY(-1px);
}

.qxb-page-btn:active,
.qxb-pagination a.page-numbers:active {
  transform: scale(0.96);
}

.qxb-page-btn:focus-visible,
.qxb-pagination .page-numbers:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
}

.qxb-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.qxb-page-btn.active,
.qxb-pagination .page-numbers.current {
  background: var(--qxb-gradient-primary);
  border-color: var(--qxb-cyan);
  color: #ffffff;
  box-shadow: var(--qxb-btn-shadow);
}

.qxb-empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--qxb-bg-card);
  border: 1px solid var(--qxb-border);
  border-radius: 18px;
  color: var(--qxb-text-muted);
}

/* ==========================================================================
   TOPIC DIRECTORY & ENTERPRISE CTA STRIP
   ========================================================================== */
.qxb-directory-section {
  padding: 56px 0;
  background: linear-gradient(180deg, #070b18 0%, #0a0f1d 100%);
  border-top: 1px solid var(--qxb-border);
  border-bottom: 1px solid var(--qxb-border);
}

.qxb-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qxb-topic-link {
  padding: 8px 15px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.18);
  color: var(--qxb-text-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.qxb-topic-link:hover {
  border-color: var(--qxb-cyan);
  color: #ffffff;
  background: rgba(29, 78, 216, 0.26);
  transform: translateY(-2px);
}

.qxb-topic-link:focus-visible,
.qxb-toc-list a:focus-visible,
.qxb-nav-card:focus-visible,
.qxb-breadcrumb a:focus-visible,
.qxb-article-prose a:focus-visible,
.qxb-author-badge:focus-visible {
  outline: none;
  box-shadow: var(--qxb-focus-ring);
}

.qxb-cta-band {
  padding: 56px 0;
  background: var(--qxb-bg-deep);
}

.qxb-cta-box {
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 210, 255, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #0b142c 0%, #0f172a 65%, #162447 100%);
  border: 1px solid rgba(0, 210, 255, 0.32);
  border-radius: 22px;
  padding: 42px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   INDIVIDUAL ARTICLE PAGE DESIGN
   ========================================================================== */
.qxb-article-hero {
  padding: 56px 0 38px;
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 210, 255, 0.14) 0%, transparent 48%),
    linear-gradient(180deg, #070b18 0%, #060913 100%);
  border-bottom: 1px solid var(--qxb-border);
}

.qxb-article-header-inner {
  max-width: 920px;
}

.qxb-article-title {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 16px 0 18px;
  color: #ffffff;
}

.qxb-article-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3.5px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00d2ff 0%, #38bdf8 55%, #2563eb 100%);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.42);
}

.qxb-hero-title span:not(.qx-split-unit),
.qxb-article-title span:not(.qx-split-unit),
.qxb-section-title span:not(.qx-split-unit),
.qxb-cta-box h2 span:not(.qx-split-unit),
.qxb-article-prose h2 span:not(.qx-split-unit) {
  background: linear-gradient(95deg, #00d2ff 0%, #38bdf8 52%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.qxb-hero-title,
.qxb-section-title,
.qxb-article-prose h2 {
  font-family: var(--qxb-font-display, var(--qx-font-display, "Plus Jakarta Sans", sans-serif));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.qxb-article-prose h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
}

.qxb-article-lead {
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  line-height: 1.68;
  color: var(--qxb-text-body);
  max-width: 72ch;
  margin-bottom: 24px;
}

.qxb-article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.qxb-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f8fafc;
}

.qxb-author-badge .qxb-author-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 2px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.26);
}

.qxb-author-badge .qxb-author-avatar img {
  width: 100%;
  height: 100%;
}

.qxb-author-meta-name {
  font-family: var(--qxb-font-display);
  font-weight: 600;
  font-size: 0.94rem;
  color: #ffffff;
  display: block;
}

.qxb-author-meta-role {
  font-size: 0.82rem;
  color: var(--qxb-text-muted);
  display: block;
}

.qxb-article-shell {
  padding: 46px 0 72px;
}

.qxb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.qxb-article-layout > * {
  min-width: 0;
}

.qxb-article-featured-figure {
  margin: 0 0 34px;
  padding: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--qxb-border);
  background: radial-gradient(circle at center, #0e1a34 0%, #070c18 100%);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46);
}

.qxb-article-featured-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* Long-form Article Prose Typography */
.qxb-article-prose {
  font-family: var(--qxb-font-body);
  font-size: 1.0625rem;
  line-height: 1.82;
  color: #cbd5e1;
  max-width: 74ch;
  overflow-wrap: anywhere;
}

.qxb-article-prose p {
  color: #cbd5e1 !important;
  margin-top: 0;
  margin-bottom: 1.35rem;
  font-size: 1.0625rem;
  line-height: 1.82;
}

.qxb-article-prose p strong,
.qxb-article-prose li strong {
  color: #f1f5f9;
  font-weight: 600;
}

.qxb-article-prose h2 {
  font-size: clamp(1.42rem, 2.2vw, 1.82rem);
  font-weight: 700;
  line-height: 1.28;
  color: #ffffff !important;
  margin: 2.5rem 0 1rem;
  padding-left: 14px;
  border-left: 3px solid var(--qxb-cyan);
  scroll-margin-top: 96px;
}

.qxb-article-prose h3 {
  font-size: clamp(1.16rem, 1.6vw, 1.36rem);
  font-weight: 600;
  line-height: 1.35;
  color: #93c5fd !important;
  margin: 1.9rem 0 0.75rem;
  scroll-margin-top: 96px;
}

.qxb-article-prose h4 {
  font-size: 1.08rem;
  font-weight: 600;
  color: #e2e8f0 !important;
  margin: 1.4rem 0 0.5rem;
}

.qxb-article-prose ul,
.qxb-article-prose ol {
  margin: 0.75rem 0 1.5rem;
  padding-left: 1.4rem;
}

.qxb-article-prose ul li,
.qxb-article-prose ol li {
  color: #cbd5e1 !important;
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

.qxb-article-prose ul li::marker {
  color: var(--qxb-cyan);
}

.qxb-article-prose ol li::marker {
  color: var(--qxb-cyan-soft);
  font-weight: 600;
}

.qxb-article-prose a {
  color: var(--qxb-cyan-soft);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.45);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.qxb-article-prose a:hover {
  color: var(--qxb-cyan);
  text-decoration-color: var(--qxb-cyan);
}

.qxb-article-prose blockquote {
  margin: 1.8rem 0;
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.9);
  border-left: 4px solid var(--qxb-cyan);
  border-radius: 0 14px 14px 0;
  color: #e2e8f0;
  font-size: 1.04rem;
  line-height: 1.72;
}

.qxb-article-prose figure,
.qxb-article-prose .wp-block-image {
  margin: 2rem 0;
  padding: 8px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--qxb-border);
  background: #0a1224;
}

.qxb-article-prose figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.qxb-article-prose img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.qxb-blog-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.8rem 0;
  border-radius: 14px;
  border: 1px solid var(--qxb-border);
  background: var(--qxb-bg-card);
}

.qxb-article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

.qxb-article-prose th,
.qxb-article-prose td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  color: #cbd5e1;
}

.qxb-article-prose th,
.qxb-article-prose thead td {
  background: rgba(29, 78, 216, 0.22);
  color: #ffffff;
  font-family: var(--qxb-font-display);
  font-weight: 600;
}

/* Sticky Article Sidebar */
.qxb-article-sidebar {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qxb-sidebar-card {
  background: var(--qxb-bg-card);
  border: 1px solid var(--qxb-border);
  border-radius: 16px;
  padding: 22px;
}

.qxb-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qxb-cyan);
  margin: 0 0 14px;
}

.qxb-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.qxb-toc-list a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--qxb-text-muted);
  text-decoration: none;
  border-radius: 0 6px 6px 0;
  transition: all 0.18s ease;
}

.qxb-toc-list a.qxb-toc-sub {
  padding-left: 22px;
  font-size: 0.83rem;
}

.qxb-toc-list a:hover,
.qxb-toc-list a.active {
  color: #ffffff;
  border-left-color: var(--qxb-cyan);
  background: rgba(0, 210, 255, 0.08);
}

.qxb-cta-mini {
  background: linear-gradient(155deg, rgba(29, 78, 216, 0.28) 0%, rgba(15, 23, 42, 0.96) 75%);
  border-color: rgba(0, 210, 255, 0.34);
}

.qxb-cta-mini h4 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.qxb-cta-mini p {
  font-size: 0.9rem;
  color: var(--qxb-text-body);
  margin-bottom: 16px;
}

/* Prev / Next Navigation */
.qxb-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--qxb-border);
}

.qxb-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--qxb-bg-card);
  border: 1px solid var(--qxb-border);
  text-decoration: none;
  transition: all 0.25s ease;
}

.qxb-nav-card:hover {
  border-color: var(--qxb-border-hover);
  background: var(--qxb-bg-card-elevated);
  transform: translateY(-2px);
}

.qxb-nav-card.next {
  text-align: right;
  align-items: flex-end;
}

.qxb-nav-dir {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qxb-cyan);
}

.qxb-nav-title {
  font-family: var(--qxb-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
}

/* Related Articles Band */
.qxb-related-section {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #070c1a 0%, #060913 100%);
  border-top: 1px solid var(--qxb-border);
}

/* Hero Staggered Entrance (Stage 4 Motion System) */
@keyframes qxbHeroRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.qxb-hero .qxb-hero-badge,
.qxb-article-hero .qxb-breadcrumbs {
  animation: qxbHeroRise 0.56s cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
}

.qxb-hero h1,
.qxb-article-hero h1 {
  animation: qxbHeroRise 0.68s cubic-bezier(0.22, 1, 0.36, 1) 120ms both;
}

.qxb-hero .qxb-hero-sub,
.qxb-article-hero .qxb-article-excerpt,
.qxb-article-hero .qxb-article-meta {
  animation: qxbHeroRise 0.68s cubic-bezier(0.22, 1, 0.36, 1) 210ms both;
}

.qxb-hero .qxb-hero-stats {
  animation: qxbHeroRise 0.68s cubic-bezier(0.22, 1, 0.36, 1) 300ms both;
}

/* Scroll Replay Reveal Animations (All 4 Directions + Scale/Media/Mask/Blur, JS-gated) */
body.qx-blog-page main,
body.qx-blog-page section,
.qxb-hero,
.qxb-article-hero,
.qxb-section {
  overflow-x: clip;
}

.qxb-hero h1,
.qxb-article-hero h1,
.qxb-article-prose h2,
.qxb-article-prose h3,
.qxb-article-prose h4,
.qxb-card-title,
.qxb-featured-title {
  text-wrap: balance;
}

.qxb-article-prose p,
.qxb-hero-sub,
.qxb-article-excerpt,
.qxb-card-excerpt {
  text-wrap: pretty;
}

.qxb-reveal {
  transition: opacity var(--qxb-dur, 0.78s) cubic-bezier(0.22, 1, 0.36, 1) var(--qxb-delay, 0ms),
              transform var(--qxb-dur, 0.78s) cubic-bezier(0.22, 1, 0.36, 1) var(--qxb-delay, 0ms),
              filter var(--qxb-dur, 0.78s) cubic-bezier(0.22, 1, 0.36, 1) var(--qxb-delay, 0ms),
              clip-path var(--qxb-dur, 0.78s) cubic-bezier(0.22, 1, 0.36, 1) var(--qxb-delay, 0ms);
}

html.qxb-motion-ready .qxb-reveal:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, calc(var(--qxb-dist, 24px) * var(--qx-dir-sign, 1)), 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="fade-down"]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, calc(-1 * var(--qxb-dist, 24px)), 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="slide-left"]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(calc(-1 * var(--qxb-dist-x, 22px)), 0, 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="slide-right"]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(var(--qxb-dist-x, 22px), 0, 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="scale-in"]:not(.is-visible) {
  opacity: 0;
  transform: scale(0.95) translate3d(0, calc(16px * var(--qx-dir-sign, 1)), 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="media"]:not(.is-visible) {
  opacity: 0;
  transform: scale(0.97) translate3d(0, calc(18px * var(--qx-dir-sign, 1)), 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="blur-up"]:not(.is-visible) {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, calc(20px * var(--qx-dir-sign, 1)), 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="mask-up"]:not(.is-visible) {
  opacity: 0.05;
  clip-path: inset(0 0 100% 0);
  transform: translate3d(0, 16px, 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="list-stagger"]:not(.is-visible),
html.qxb-motion-ready .qxb-reveal[data-qxb-anim="paragraph-stagger"]:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, calc(16px * var(--qx-dir-sign, 1)), 0);
}

html.qxb-motion-ready .qxb-reveal[data-qxb-anim="fade-in"]:not(.is-visible) {
  opacity: 0;
  transform: none;
}

html.qxb-motion-ready .qxb-reveal.is-visible {
  opacity: 1;
  filter: none;
  clip-path: inset(0 0 0 0);
}

html.qxb-motion-ready .qxb-reveal.is-visible:not(:hover) {
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 991.98px) {
  body.qx-blog-page {
    --qxb-dur: 0.64s;
    --qxb-dist: 18px;
    --qxb-dist-x: 15px;
  }
}

@media (max-width: 767.98px) {
  body.qx-blog-page {
    --qxb-dur: 0.52s;
    --qxb-dist: 14px;
    --qxb-dist-x: 11px;
  }
  .qxb-reveal {
    transition-delay: min(var(--qxb-delay, 0ms), 120ms);
  }
  html.qxb-motion-ready .qxb-reveal[data-qxb-anim="blur-up"]:not(.is-visible) {
    filter: none;
  }
}

.qxb-offscreen-reset {
  transition: none !important;
  animation: none !important;
}

.qxb-card,
.qxb-featured-card,
.qxb-topic-link,
.qxb-share-btn,
.qxb-page-btn {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.qxb-card-media img,
.qxb-featured-media img,
.qxb-article-featured-figure img {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.qxb-card:hover .qxb-card-media img,
.qxb-featured-card:hover .qxb-featured-media img {
  transform: scale(1.045);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Small Desktop, Tablet, Large & Small Mobile)
   ========================================================================== */
@media (max-width: 1199px) {
  .qxb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .qxb-article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
  }
}

@media (max-width: 1024px) {
  .qxb-hero {
    padding: clamp(28px, 4vw, 42px) 0 clamp(22px, 3vw, 32px);
  }
  .qxb-article-hero {
    padding: clamp(26px, 3.8vw, 38px) 0 clamp(20px, 2.8vw, 30px);
  }
  .qxb-featured-section {
    padding: clamp(24px, 3vw, 34px) 0 16px;
  }
  .qxb-toolbar-section {
    padding: 20px 0 12px;
  }
  .qxb-directory-section,
  .qxb-cta-band,
  .qxb-related-section {
    padding-top: clamp(26px, 3.6vw, 40px);
    padding-bottom: clamp(26px, 3.6vw, 40px);
  }
}

@media (max-width: 991px) {
  .qxb-hero {
    padding: 32px 0 26px;
  }
  .qxb-hero-metrics {
    gap: 10px 18px;
    padding-top: 14px;
  }
  .qxb-featured-card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }
  .qxb-featured-media {
    min-height: 0;
    height: auto;
    max-height: none;
    padding: 10px;
  }
  .qxb-featured-media img {
    max-height: 360px;
  }
  .qxb-featured-body {
    padding: 20px 20px;
  }
  .qxb-article-hero {
    padding: 30px 0 22px;
  }
  .qxb-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .qxb-article-sidebar {
    position: static;
    order: 2;
  }
  .qxb-reveal {
    transition-duration: 0.74s;
    transition-delay: min(var(--qxb-delay, 0ms), 160ms);
  }
}

@media (max-width: 767px) {
  .qxb-hero {
    padding: 20px 0 18px;
  }
  .qxb-eyebrow {
    padding: 4px 11px;
    font-size: 0.72rem;
    margin-bottom: 10px;
  }
  .qxb-breadcrumb {
    font-size: 0.8rem;
    gap: 6px;
    margin-bottom: 10px;
  }
  .qxb-hero-title,
  .qxb-hero h1 {
    font-size: clamp(1.34rem, 5.2vw, 1.66rem);
    line-height: 1.18;
    margin-bottom: 8px;
  }
  .qxb-hero-lead,
  .qxb-hero .qxb-hero-sub {
    font-size: clamp(0.85rem, 3.2vw, 0.94rem);
    line-height: 1.48;
    margin-bottom: 14px;
  }
  .qxb-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
  }
  .qxb-metric-item {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 0.76rem;
    line-height: 1.25;
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }
  .qxb-metric-item strong {
    font-size: 0.92rem;
  }
  .qxb-featured-section {
    padding: 18px 0 12px;
  }
  .qxb-featured-media {
    min-height: 0;
    max-height: none;
  }
  .qxb-featured-media img {
    max-height: 340px;
  }
  .qxb-featured-ribbon {
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.72rem;
  }
  .qxb-featured-body {
    padding: 15px 15px;
  }
  .qxb-featured-title {
    font-size: clamp(1.12rem, 4.3vw, 1.32rem);
    margin: 8px 0 8px;
  }
  .qxb-featured-excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .qxb-toolbar-section {
    padding: 14px 0 10px;
  }
  .qxb-grid-section {
    padding: 16px 0 28px;
  }
  .qxb-section-head {
    gap: 8px;
    margin-bottom: 14px;
  }
  .qxb-section-title {
    font-size: clamp(1.22rem, 4.4vw, 1.48rem);
  }
  .qxb-article-hero {
    padding: 20px 0 16px;
  }
  .qxb-article-title,
  .qxb-article-hero h1 {
    font-size: clamp(1.3rem, 5vw, 1.64rem);
    line-height: 1.2;
    margin: 8px 0 10px;
  }
  .qxb-article-lead,
  .qxb-article-excerpt {
    font-size: clamp(0.875rem, 3.2vw, 0.95rem);
    line-height: 1.48;
    margin-bottom: 12px;
  }
  .qxb-article-byline {
    gap: 10px 14px;
    padding-top: 12px;
  }
  .qxb-article-shell {
    padding: 20px 0 28px;
  }
  .qxb-article-featured-figure {
    margin: 0 0 16px;
    padding: 8px;
    border-radius: 12px;
  }
  .qxb-article-featured-figure img {
    max-height: 480px;
  }
  .qxb-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .qxb-card {
    border-radius: 14px;
  }
  .qxb-card-media {
    aspect-ratio: 16 / 9;
    padding: 6px;
  }
  .qxb-card-body {
    padding: 13px 14px 14px;
  }
  .qxb-card-badges {
    gap: 6px;
    margin-bottom: 6px;
  }
  .qxb-badge-cat {
    padding: 3px 9px;
    font-size: 0.74rem;
  }
  .qxb-meta-row {
    font-size: 0.78rem;
    gap: 6px 10px;
  }
  .qxb-card-title {
    font-size: 1.02rem;
    line-height: 1.3;
    margin: 6px 0 6px;
  }
  .qxb-card-excerpt {
    font-size: 0.86rem;
    line-height: 1.48;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }
  .qxb-card-footer {
    padding-top: 10px;
  }
  .qxb-directory-section {
    padding: 24px 0;
  }
  .qxb-topic-grid {
    gap: 7px;
  }
  .qxb-topic-link {
    padding: 6px 11px;
    font-size: 0.8125rem;
    border-radius: 8px;
  }
  .qxb-cta-band,
  .qxb-related-section {
    padding: 24px 0 28px;
  }
  .qxb-prev-next {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
  }
  .qxb-nav-card {
    padding: 13px 14px;
    border-radius: 12px;
  }
  .qxb-nav-card.next {
    text-align: left;
    align-items: flex-start;
  }
  .qxb-cta-box {
    padding: 18px 14px;
    border-radius: 14px;
    gap: 14px;
  }
  .qxb-toolbar {
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .qxb-search-wrap {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
  .qxb-search-input,
  .qxb-sort-select {
    font-size: 16px;
    min-height: 42px;
  }
  .qxb-toolbar-controls {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .qxb-cat-pills {
    gap: 6px;
  }
  .qxb-cat-pill {
    padding: 6px 11px;
    min-height: 34px;
    font-size: 0.8rem;
  }
  .qxb-btn-primary,
  .qxb-btn-secondary {
    min-height: 40px;
    padding: 9px 18px;
    font-size: 0.875rem;
  }
  .qxb-pagination {
    gap: 6px;
    margin-top: 22px;
  }
  .qxb-page-btn,
  .qxb-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 6px 10px;
    font-size: 0.84rem;
  }
  .qxb-blog-table-wrap {
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 1rem 0;
  }
  .qxb-article-prose table {
    min-width: 0;
    width: 100%;
    font-size: 0.84rem;
  }
  .qxb-article-prose th,
  .qxb-article-prose td {
    padding: 8px 9px;
    vertical-align: top;
    overflow-wrap: break-word;
  }
  .qxb-article-prose {
    overflow-wrap: break-word;
    word-break: normal;
  }
  .qxb-article-prose pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
    overflow-x: auto;
    padding: 12px;
    border-radius: 10px;
  }
  .qxb-article-prose a,
  .qxb-article-prose code {
    overflow-wrap: anywhere;
  }
  .qxb-article-prose,
  .qxb-article-prose p {
    font-size: 0.9375rem;
    line-height: 1.62;
    margin-bottom: 0.95rem;
  }
  .qxb-article-prose h2 {
    font-size: 1.22rem;
    margin: 1.4rem 0 0.65rem;
  }
  .qxb-article-prose h3 {
    font-size: 1.06rem;
    margin: 1.15rem 0 0.5rem;
  }
  .qxb-article-prose ul,
  .qxb-article-prose ol {
    margin: 0.5rem 0 1rem;
  }
  .qxb-article-prose ul li,
  .qxb-article-prose ol li {
    margin-bottom: 0.42rem;
    line-height: 1.56;
  }
  .qxb-article-prose blockquote {
    margin: 1rem 0;
    padding: 13px 15px;
    font-size: 0.93rem;
    line-height: 1.56;
  }
  .qxb-sidebar-card {
    padding: 14px;
    border-radius: 12px;
  }
}

@media (max-width: 430px) {
  .qxb-hero-title,
  .qxb-hero h1,
  .qxb-article-title,
  .qxb-article-hero h1 {
    font-size: clamp(1.26rem, 5.4vw, 1.52rem);
    line-height: 1.18;
  }
  .qxb-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qxb-metric-item:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }
  .qxb-featured-body {
    padding: 14px 13px;
  }
  .qxb-card-body {
    padding: 12px 13px 13px;
  }
  .qxb-article-meta {
    gap: 8px 12px;
    font-size: 0.8rem;
  }
  .qxb-cta-box {
    padding: 16px 13px;
    border-radius: 14px;
  }
  .qxb-article-prose table {
    font-size: 0.8125rem;
    table-layout: fixed;
  }
  .qxb-article-prose th,
  .qxb-article-prose td {
    padding: 7px 7px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}

/* Reduced Motion Accessibility: OS prefers-reduced-motion uses calm opacity-only transitions; explicit toggle disables motion */
@media (prefers-reduced-motion: reduce) {
  html:not(.qx-user-reduced-motion) {
    scroll-behavior: auto !important;
  }
  html:not(.qx-user-reduced-motion) .qxb-reveal {
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: opacity 200ms ease !important;
    animation: none !important;
  }
}

html.qx-user-reduced-motion {
  scroll-behavior: auto !important;
}

html.qx-user-reduced-motion .qxb-hero .qxb-hero-badge,
html.qx-user-reduced-motion .qxb-hero h1,
html.qx-user-reduced-motion .qxb-hero .qxb-hero-sub,
html.qx-user-reduced-motion .qxb-hero .qxb-hero-stats,
html.qx-user-reduced-motion .qxb-article-hero .qxb-breadcrumbs,
html.qx-user-reduced-motion .qxb-article-hero h1,
html.qx-user-reduced-motion .qxb-article-hero .qxb-article-excerpt,
html.qx-user-reduced-motion .qxb-article-hero .qxb-article-meta,
html.qx-user-reduced-motion .qxb-reveal,
html.qx-user-reduced-motion .qxb-card,
html.qx-user-reduced-motion .qxb-featured-card,
html.qx-user-reduced-motion .qxb-card-media img,
html.qx-user-reduced-motion .qxb-featured-media img,
html.qx-user-reduced-motion .qxb-article-featured-figure img,
html.qx-user-reduced-motion .qxb-btn-primary,
html.qx-user-reduced-motion .qxb-btn-primary::before,
html.qx-user-reduced-motion .qxb-read-link,
html.qx-user-reduced-motion .qxb-topic-link,
html.qx-user-reduced-motion .qxb-share-btn,
html.qx-user-reduced-motion .qxb-page-btn,
html.qx-user-reduced-motion .qxb-nav-card,
html.qx-user-reduced-motion .qx-reading-progress {
  transition: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* ==========================================================================
   PREMIUM 2D FLAT BLOG BUTTONS & BRIGHT 3D HERO HEADLINES
   - Buttons: Clean modern 2D flat design (zero 3D extrusion / zero bulky shadow)
   - Hero Headlines: Refined bright 3D dimensional typography (no BG changes)
   ========================================================================== */
body.qx-blog-page .qxb-btn-primary,
body.qx-blog-page .qxb-btn-secondary {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 10px;
  font-family: var(--qx-font-display, "Plus Jakarta Sans", "Inter", sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.012em;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  text-shadow: none !important;
  user-select: none;
  transition: background-color 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
}

body.qx-blog-page .qxb-btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 62%, #00b8e6 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.44) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.24) !important;
}

@media (hover: hover) and (pointer: fine) {
  body.qx-blog-page .qxb-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 58%, #22d3ee 100%) !important;
    border-color: #7dd3fc !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 210, 255, 0.22) !important;
  }
}

body.qx-blog-page .qxb-btn-primary:active:not(:disabled) {
  transform: scale(0.985) !important;
  box-shadow: none !important;
  filter: brightness(0.96);
}

body.qx-blog-page .qxb-btn-secondary {
  background: rgba(15, 23, 42, 0.86) !important;
  border: 1px solid rgba(56, 189, 248, 0.36) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
  body.qx-blog-page .qxb-btn-secondary:hover:not(:disabled) {
    background: rgba(29, 78, 216, 0.28) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 210, 255, 0.14) !important;
  }
}

body.qx-blog-page .qxb-btn-secondary:active:not(:disabled) {
  transform: scale(0.985) !important;
  box-shadow: none !important;
}

body.qx-blog-page .qxb-btn-primary:focus-visible,
body.qx-blog-page .qxb-btn-secondary:focus-visible {
  outline: none !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.36) !important;
}

body.qx-blog-page .qxb-btn-primary:disabled,
body.qx-blog-page .qxb-btn-secondary:disabled {
  opacity: 0.46 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

body.qx-blog-page .qxb-cat-pill,
body.qx-blog-page .qxb-share-btn,
body.qx-blog-page .qxb-page-btn {
  min-height: 36px;
  padding: 7px 15px;
  border-radius: 9px;
  font-family: var(--qx-font-ui, "Inter", sans-serif);
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

body.qx-blog-page .qxb-cat-pill:active,
body.qx-blog-page .qxb-share-btn:active,
body.qx-blog-page .qxb-page-btn:active {
  transform: scale(0.98) !important;
  box-shadow: none !important;
}

body.qx-blog-page .qxb-cat-pill:focus-visible,
body.qx-blog-page .qxb-share-btn:focus-visible,
body.qx-blog-page .qxb-page-btn:focus-visible {
  outline: none !important;
  border-color: #7dd3fc !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.36) !important;
}

body.qx-blog-page .qxb-hero h1 {
  font-family: var(--qx-font-display, "Plus Jakarta Sans", "Inter", sans-serif);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.14;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  text-shadow:
    0 1px 0 #102a68,
    0 2px 0 #09173b,
    0 5px 14px rgba(2, 8, 28, 0.68),
    0 10px 22px rgba(2, 8, 28, 0.38) !important;
}

body.qx-blog-page .qxb-hero h1 .qxb-gradient-text,
body.qx-blog-page .qxb-hero h1 span:not(.qx-split-unit) {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #38e8ff !important;
  -webkit-text-fill-color: #38e8ff !important;
  text-shadow:
    0 1px 0 #0369a1,
    0 2px 0 #082f49,
    0 6px 18px rgba(0, 210, 255, 0.34) !important;
}

body.qx-blog-page .qxb-article-hero h1 {
  font-family: var(--qx-font-display, "Plus Jakarta Sans", "Inter", sans-serif);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.15;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #f5faff !important;
  -webkit-text-fill-color: #f5faff !important;
  text-shadow:
    0 1px 0 #12306e,
    0 2px 0 #08183d,
    0 5px 14px rgba(2, 8, 28, 0.66),
    0 10px 22px rgba(2, 8, 28, 0.36) !important;
}

body.qx-blog-page .qxb-hero .qxb-hero-sub,
body.qx-blog-page .qxb-article-hero .qxb-article-excerpt {
  color: #e0f2fe !important;
  line-height: 1.62;
  letter-spacing: -0.004em;
  text-shadow: 0 1px 2px rgba(2, 8, 28, 0.64) !important;
}
