/* SMSLab news / articles */
:root {
  --ink: #10142a;
  --ink-soft: #3a4158;
  --muted: #5a6178;
  --line: rgba(24, 31, 71, 0.1);
  --bg: #fff;
  --bg-soft: #f6f7fb;
  --purple: #4954e6;
  --purple-2: #7b4dff;
  --purple-soft: rgba(73, 84, 230, 0.1);
  --shadow: 0 14px 40px rgba(16, 20, 42, 0.08);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
.sms-page-main { width: 100%; margin: 0; padding: 0; }
.news-wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.news-eyebrow {
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

/* Index */
.news-hero {
  padding: 48px 0 28px;
  background:
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(73,84,230,.12), transparent 55%),
    linear-gradient(180deg, #f8f9ff, #fff 70%);
  border-bottom: 1px solid var(--line);
}
.news-hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.news-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
}
.news-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
}
.news-list {
  padding: 36px 0 56px;
}
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.news-filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.news-filter-btn:hover {
  border-color: rgba(73, 84, 230, 0.35);
  color: var(--purple);
}
.news-filter-btn.is-active {
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  border-color: transparent;
  color: #fff;
}
.news-filter-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 4px;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}
a.news-tag:hover {
  background: rgba(73, 84, 230, 0.18);
}
.article-byline + .news-tags {
  margin: -10px 0 18px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.news-card[hidden] {
  display: none !important;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.news-card .date {
  font-size: 12px;
  color: #8b92a8;
  font-weight: 600;
}
.news-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.news-card-media {
  display: block;
  margin: -18px -18px 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #e8eaf3;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .more {
  margin-top: auto;
  color: var(--purple);
  font-weight: 650;
  font-size: 14px;
}
.article-hero,
.article-figure {
  margin: 0 0 22px;
  border-radius: 18px;
  overflow: hidden;
  background: #e8eaf3;
  border: 1px solid var(--line);
}
.article-hero img,
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}

/* Article */
.article-page {
  padding: 36px 0 24px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.article-main {
  min-width: 0;
}
.article-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}
.article-crumb a { color: var(--muted); text-decoration: none; }
.article-crumb a:hover { color: var(--purple); }
.article-main h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.article-summary {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.article-body p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  max-width: 68ch;
}
.article-body h2 {
  margin: 28px 0 12px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.article-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
}
.news-agents-promo {
  position: relative;
  overflow: hidden;
  padding: 18px 16px 16px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 55% at 88% 18%, rgba(110, 90, 255, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(55, 30, 140, 0.55), transparent 55%),
    linear-gradient(165deg, #120b3a 0%, #1a1258 42%, #2a1678 100%);
  color: #f4f6ff;
  box-shadow: 0 18px 40px rgba(24, 12, 70, 0.28);
  border: 1px solid rgba(160, 140, 255, 0.18);
}
.news-agents-promo::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 40%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 170, 255, 0.22), transparent 68%);
  pointer-events: none;
}
.nap-brand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.nap-star {
  color: #b7a6ff;
  font-size: 14px;
}
.nap-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nap-badge {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(123, 77, 255, 0.35);
  border: 1px solid rgba(180, 160, 255, 0.28);
  font-size: 11px;
  font-weight: 650;
  color: #efe9ff;
}
.nap-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  align-items: start;
  margin: 0 0 14px;
}
.nap-copy h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 750;
}
.nap-copy h2 span { color: #d7ccff; }
.nap-copy p {
  margin: 0;
  color: rgba(244, 246, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}
.nap-visual {
  justify-self: end;
  width: 112px;
  margin-top: -4px;
  filter: drop-shadow(0 10px 18px rgba(80, 120, 255, 0.35));
}
.nap-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}
.nap-benefits {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.nap-benefits li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.nap-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(90, 60, 200, 0.55);
  border: 1px solid rgba(180, 160, 255, 0.22);
  color: #e8e0ff;
}
.nap-benefits strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.nap-benefits small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(244, 246, 255, 0.62);
  line-height: 1.3;
}
.nap-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7b4dff, #6a3df0);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 10px 24px rgba(110, 70, 255, 0.35);
}
.nap-cta:hover { filter: brightness(1.06); }
.nap-foot {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: rgba(244, 246, 255, 0.55);
}

/* Wide (bottom / index) */
.news-agents-promo--wide {
  padding: 20px 20px 16px;
}
.nap-wide-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 0.8fr);
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 14px;
}
.news-agents-promo--wide .nap-copy h2 {
  font-size: clamp(22px, 3vw, 28px);
}
.news-agents-promo--wide .nap-copy p {
  font-size: 14px;
  max-width: 42ch;
}
.news-agents-promo--wide .nap-visual {
  width: min(200px, 100%);
  justify-self: end;
}
.nap-wide-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(10, 6, 40, 0.35);
  border: 1px solid rgba(180, 160, 255, 0.14);
}
.nap-benefits--row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.nap-benefits--row li {
  grid-template-columns: 30px auto;
  gap: 8px;
  color: rgba(244, 246, 255, 0.86);
  font-size: 13px;
  font-weight: 650;
}
.nap-benefits--row .nap-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.news-agents-promo--wide .nap-cta {
  width: auto;
  min-width: 220px;
  padding: 11px 18px;
}
.news-geo-takeaways {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(73, 84, 230, 0.22);
  background: linear-gradient(180deg, #f7f8ff, #fff);
}
.news-geo-takeaways h2,
.news-geo-source h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.02em;
}
.news-geo-takeaways ul {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.news-geo-takeaways li { margin: 0 0 8px; }
.news-geo-cite {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}
.news-geo-cite a { color: var(--purple); }
.news-geo-source {
  margin: 28px 0 8px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--bg-soft);
}
.news-geo-source p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.news-geo-source a { color: var(--purple); word-break: break-all; }
.news-geo-card,
.news-related {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.news-geo-card h3,
.news-related h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px;
}
.news-geo-card p,
.news-related p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.news-related a {
  display: block;
  margin-top: 10px;
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.article-bottom-promo {
  margin: 36px 0 12px;
}

@media (max-width: 960px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  /* one agents promo on mobile: keep bottom wide, hide sidebar duplicate */
  .article-side > .news-agents-promo { display: none; }
  .nap-wide-main { grid-template-columns: 1fr; }
  .news-agents-promo--wide .nap-visual { justify-self: center; width: 160px; }
  .nap-wide-bar { flex-direction: column; align-items: stretch; }
  .news-agents-promo--wide .nap-cta { width: 100%; }
}
@media (max-width: 720px) {
  .nap-hero { grid-template-columns: minmax(0, 1fr) 96px; }
}
@media (max-width: 640px) {
  .news-wrap { width: min(1100px, calc(100% - 28px)); }
  .news-grid { grid-template-columns: 1fr; }
  .news-hero { padding: 28px 0 20px; }
}
