/* NexusSpira — home page (v2) */

.ns-main--home {
  --home-card-bg: var(--white, #fff);
  --home-shadow: 0 1px 3px rgba(15, 31, 92, 0.06), 0 1px 2px rgba(15, 31, 92, 0.04);
  --home-shadow-md: 0 4px 16px rgba(15, 31, 92, 0.08);
  --home-shadow-hover: 0 8px 28px rgba(15, 31, 92, 0.12);
}

/* ===== HERO ===== */
.ns-main--home .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 128px 5% 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: left;
}
.ns-main--home .hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 50% at 75% 45%,
    rgba(26, 111, 191, 0.07) 0%,
    transparent 65%
  );
}
.ns-main--home .hero-content {
  position: relative;
  max-width: 620px;
  z-index: 2;
  flex: 1;
}
.ns-main--home .hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  max-width: min(480px, 44vw);
  margin-left: auto;
}
.ns-main--home .hero-blob {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 40% 40%, rgba(0, 184, 200, 0.06), transparent 65%),
    radial-gradient(ellipse at 70% 70%, rgba(26, 111, 191, 0.05), transparent 60%);
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 60%;
  animation: homeMorph 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes homeMorph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 60%; }
  33% { border-radius: 40% 60% 45% 55% / 55% 45% 60% 50%; }
  66% { border-radius: 55% 45% 60% 40% / 45% 60% 40% 55%; }
}
.ns-main--home .hero-blob svg {
  width: 88%;
  height: auto;
}
.ns-main--home .hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  color: var(--navy) !important;
  margin-bottom: 20px;
  letter-spacing: -0.02em !important;
  font-family: var(--font-body) !important;
}
.ns-main--home .hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ns-main--home .hero p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 500px;
  line-height: 1.7;
}
.ns-main--home .hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0;
}
.ns-main--home .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #4f46e5;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}
.ns-main--home .btn-primary:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(67, 56, 202, 0.4);
  color: #fff;
}
.ns-main--home .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--border);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.ns-main--home .btn-outline:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.06);
}
.ns-main--home .hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 48px;
}
.ns-main--home .stat-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: var(--home-shadow);
  min-width: 100px;
}
.ns-main--home .stat-pill .num {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  display: block;
  line-height: 1.1;
}
.ns-main--home .stat-pill .lbl {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* TICKER */
.ns-main--home .tools-bar {
  background: var(--grad);
  padding: 0;
  overflow: hidden;
}
.ns-main--home .tools-ticker {
  display: flex;
  animation: homeTicker 30s linear infinite;
  width: max-content;
}
@keyframes homeTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ns-main--home .ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ns-main--home .ticker-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

/* SHARED HEADERS */
.ns-main--home .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.ns-main--home .section-header.left {
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.ns-main--home .section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  background: rgba(26, 111, 191, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.ns-main--home .section-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.ns-main--home .section-header p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}
.ns-main--home .section-header.left p {
  margin: 0;
}
.ns-main--home .view-all-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.ns-main--home .view-all-link:hover {
  text-decoration: underline;
}

/* EXPLORE GRID */
.ns-main--home .explore-section {
  padding: 56px 5% 8px;
}
.ns-main--home .explore-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.ns-main--home .explore-card {
  position: relative;
  text-decoration: none;
  background: var(--home-card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
  box-shadow: var(--home-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ns-main--home .explore-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-hover);
  border-color: var(--blue);
}
.ns-main--home .explore-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad);
  color: #fff;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(26, 111, 191, 0.2);
}
.ns-main--home .explore-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ns-main--home .explore-card:hover .explore-icon {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(26, 111, 191, 0.28);
}
.ns-main--home .explore-body {
  flex: 1;
}
.ns-main--home .explore-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.2;
}
.ns-main--home .explore-card p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.ns-main--home .explore-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
@media (max-width: 1200px) {
  .ns-main--home .explore-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 760px) {
  .ns-main--home .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .ns-main--home .explore-section {
    padding: 40px 4% 8px;
  }
  .ns-main--home .explore-card {
    padding: 16px 14px;
    min-height: 0;
    gap: 10px;
    border-radius: 14px;
  }
  .ns-main--home .explore-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }
  .ns-main--home .explore-icon svg {
    width: 17px;
    height: 17px;
  }
  .ns-main--home .explore-card h3 {
    font-size: 13px;
  }
  .ns-main--home .explore-card p {
    font-size: 10.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ns-main--home .explore-count {
    font-size: 9.5px;
    padding-top: 8px;
  }
}

/* PANELS */
.ns-main--home .dual-row {
  padding: 52px 5% 8px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.ns-main--home .dual-row.event-row {
  grid-template-columns: 1.4fr 1fr;
}
@media (max-width: 900px) {
  .ns-main--home .dual-row,
  .ns-main--home .dual-row.event-row {
    grid-template-columns: 1fr;
  }
}
.ns-main--home .panel {
  background: var(--home-card-bg);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--home-shadow);
  display: flex;
  flex-direction: column;
}
.ns-main--home .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.ns-main--home .panel-head-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.ns-main--home .panel-head-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(26, 111, 191, 0.08);
  color: var(--blue);
}
.ns-main--home .panel-head-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ns-main--home .panel-head h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.ns-main--home .panel-head .sub {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}
.ns-main--home .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: eyebrowPulse 1.5s ease-in-out infinite;
  display: inline-block;
  margin-right: 4px;
}
.ns-main--home .panel-empty {
  padding: 20px 24px 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* History rows */
.ns-main--home .hist-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.18s;
}
.ns-main--home .hist-row:last-child {
  border-bottom: none;
}
.ns-main--home .hist-row:hover {
  background: var(--bg);
}
.ns-main--home .hist-row:hover .hist-row-title {
  color: var(--blue);
}
.ns-main--home .hist-row-year {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(26, 111, 191, 0.08);
  color: var(--blue);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 800;
}
.ns-main--home .hist-row-year .yr {
  font-size: 12px;
  font-weight: 900;
}
.ns-main--home .hist-row-body {
  flex: 1;
  min-width: 0;
}
.ns-main--home .hist-row-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  transition: color 0.18s;
}
.ns-main--home .hist-row-cat {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}
.ns-main--home .hist-row-arrow {
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
}

/* Options (poll / trivia) */
.ns-main--home .option-body {
  padding: 20px 24px 24px;
}
.ns-main--home .option-question {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
}
.ns-main--home .opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 9px;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--bg);
}
.ns-main--home .opt:hover {
  border-color: var(--blue);
  background: rgba(26, 111, 191, 0.04);
}
.ns-main--home .opt.selected {
  border-color: var(--blue);
  background: rgba(26, 111, 191, 0.07);
}
.ns-main--home .opt-radio {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.18s;
}
.ns-main--home .opt:hover .opt-radio,
.ns-main--home .opt.selected .opt-radio {
  border-color: var(--blue);
}
.ns-main--home .opt.selected .opt-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
}
.ns-main--home .opt-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.ns-main--home .opt-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}
.ns-main--home .submit-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px;
  border-radius: 50px;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--grad);
  box-shadow: 0 4px 16px rgba(26, 111, 191, 0.25);
  text-align: center;
  text-decoration: none;
}
.ns-main--home .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 111, 191, 0.32);
  color: #fff;
}
.ns-main--home .trivia-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ns-main--home .trivia-chip {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 50px;
  background: rgba(26, 111, 191, 0.08);
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Stacked column */
.ns-main--home .stacked-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ns-main--home .panel.mini .panel-head {
  padding: 15px 20px 12px;
}
.ns-main--home .panel.mini .panel-head-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.ns-main--home .panel.mini .panel-head-icon svg {
  width: 16px;
  height: 16px;
}
.ns-main--home .panel.mini .panel-head h3 {
  font-size: 13.5px;
}
.ns-main--home .panel.mini .panel-head .sub {
  font-size: 10.5px;
}

/* Countdown */
.ns-main--home .countdown-body {
  padding: 18px 20px 20px;
  text-align: center;
}
.ns-main--home .countdown-event {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.ns-main--home .countdown-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}
.ns-main--home .cd-unit {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  min-width: 52px;
}
.ns-main--home .cd-unit .num {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  display: block;
  line-height: 1;
}
.ns-main--home .cd-unit .lbl {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
  display: block;
}
.ns-main--home .countdown-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.ns-main--home .countdown-link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-top: 8px;
}
.ns-main--home .countdown-link:hover {
  text-decoration: underline;
}
@media (max-width: 480px) {
  .ns-main--home .cd-unit {
    min-width: 46px;
    padding: 9px 6px;
  }
  .ns-main--home .cd-unit .num {
    font-size: 16px;
  }
}

/* Quote */
.ns-main--home .quote-body {
  padding: 8px 20px 20px;
  position: relative;
}
.ns-main--home .quote-mark {
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 900;
  color: rgba(26, 111, 191, 0.1);
  line-height: 1;
  position: absolute;
  top: 2px;
  left: 14px;
  pointer-events: none;
  user-select: none;
}
.ns-main--home .quote-content {
  position: relative;
  padding-left: 8px;
}
.ns-main--home .quote-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.55;
  font-style: italic;
  margin-bottom: 12px;
}
.ns-main--home .quote-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ns-main--home .quote-author::before {
  content: '';
  width: 16px;
  height: 1.5px;
  background: var(--border);
  display: inline-block;
}
.ns-main--home .quote-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
}
.ns-main--home .quote-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.18s;
  padding: 4px 0;
  text-decoration: none;
}
.ns-main--home .quote-action-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.ns-main--home .quote-action-btn:hover {
  color: var(--blue);
}
.ns-main--home .quote-new-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(26, 111, 191, 0.08);
  border: none;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.ns-main--home .quote-new-btn:hover {
  background: rgba(26, 111, 191, 0.14);
}

/* Latest posts */
.ns-main--home .latest-posts {
  padding: 56px 5% 8px;
}
.ns-main--home .posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ns-main--home .post-card {
  background: var(--home-card-bg);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.22s ease;
  box-shadow: var(--home-shadow);
}
.ns-main--home .post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-hover);
  border-color: var(--blue);
}
.ns-main--home .post-img {
  height: 148px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--grad);
}
.ns-main--home .post-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ns-main--home .post-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 11px;
  border-radius: 50px;
}
.ns-main--home .post-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ns-main--home .post-body h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.ns-main--home .post-card:hover .post-body h4 {
  color: var(--blue);
}
.ns-main--home .post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  gap: 8px;
}
.ns-main--home .post-meta .author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ns-main--home .post-avatar {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}
@media (max-width: 1000px) {
  .ns-main--home .posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ns-main--home .posts-grid { grid-template-columns: 1fr; }
}

/* Trending strip */
.ns-main--home .trending-strip {
  background: linear-gradient(135deg, #0b1845 0%, #122272 55%, #0a3570 100%);
  padding: 40px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 52px;
  margin-bottom: 0;
}
.ns-main--home .trending-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0, 184, 200, 0.1), transparent 65%);
}
.ns-main--home .trending-strip > * {
  position: relative;
  z-index: 1;
}
.ns-main--home .trending-strip h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.ns-main--home .tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.ns-main--home .topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.22s;
  text-decoration: none;
}
.ns-main--home .topic-tag:hover {
  background: rgba(0, 184, 200, 0.2);
  border-color: var(--teal);
  color: #fff;
}
.ns-main--home .topic-tag.hot {
  background: rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.4);
  color: #ffb09a;
}

/* Back to top */
.ns-main--home .back-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  box-shadow: var(--home-shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 99;
}
.ns-main--home .back-top.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1000px) {
  .ns-main--home .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 110px 5% 40px;
  }
  .ns-main--home .hero-content {
    max-width: 100%;
  }
  .ns-main--home .hero p {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
    font-size: 16px;
  }
  .ns-main--home .hero-btns,
  .ns-main--home .hero-stats {
    justify-content: center;
  }
  .ns-main--home .hero-stats {
    margin-top: 32px;
    gap: 10px;
  }
  .ns-main--home .stat-pill {
    padding: 12px 16px;
    min-width: 88px;
  }
  .ns-main--home .stat-pill .num {
    font-size: 18px;
  }
  /* Hide large spiral on tablet/mobile — saves a full screen of scroll */
  .ns-main--home .hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .ns-main--home .hero {
    padding: 96px 5% 32px;
  }
  .ns-main--home .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.4rem) !important;
    margin-bottom: 14px;
  }
  .ns-main--home .hero-eyebrow {
    margin-bottom: 16px;
    font-size: 11px;
    padding: 5px 12px;
  }
  .ns-main--home .hero-stats {
    margin-top: 24px;
  }
  .ns-main--home .hero-btns {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .ns-main--home .hero-btns .btn-primary,
  .ns-main--home .hero-btns .btn-outline {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}
