/* ═══════════════════════════════════════════════════════════
   MetalinkBlog — Inner pages (topics, browse, page hero)
   Matches reference: light, coral accents, rich cards
   ═══════════════════════════════════════════════════════════ */

/* ─── Split wordmark logo (reference style) ─── */
.nx-brand__wordmark {
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.nx-brand__part--dark {
  font-family: var(--nx-display);
  font-weight: 700;
  color: var(--nx-text);
}

.nx-brand__part--coral {
  font-family: var(--nx-font);
  font-weight: 700;
  background: linear-gradient(135deg, #FF5A5F, #FF9A3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nx-brand--footer .nx-brand__part--dark { color: #fff; }
.nx-brand--footer .nx-brand__part--coral {
  -webkit-text-fill-color: #FDA4AF;
  background: none;
  color: #FDA4AF;
}

.nx-gradient-text {
  background: linear-gradient(135deg, #FF5A5F, #FF9A3C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Light page hero (replaces dark masthead) ─── */
.nx-page-hero {
  position: relative;
  padding: calc(var(--nx-header-h) + 40px) 0 0;
  margin-bottom: 32px;
  overflow: hidden;
}

.nx-page-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FFF 0%, #F8FAFC 60%, #F1F5F9 100%);
  z-index: 0;
}

.nx-page-hero__bg::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 90, 95, 0.08), transparent 70%);
  pointer-events: none;
}

.nx-page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 28px;
}

.nx-page-hero__title {
  font-family: var(--nx-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--nx-dark);
}

.nx-page-hero__desc {
  font-size: 1.0625rem;
  color: var(--nx-muted);
  max-width: 560px;
  line-height: 1.65;
  margin: 0;
}

.nx-page-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #FF5A5F;
  background: rgba(255, 90, 95, 0.08);
  border-radius: 100px;
  border: 1px solid rgba(255, 90, 95, 0.15);
}

.nx-page-hero__visual {
  width: 220px;
  height: 150px;
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.nx-page-hero__visual .nx-cat-cover {
  width: 100%;
  height: 100%;
}

.nx-page-hero__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-page-hero__search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nx-page-hero__search i { color: var(--nx-muted); }

.nx-page-hero__search input {
  flex: 1;
  border: none;
  background: none;
  font-size: 0.9375rem;
  color: var(--nx-text);
  outline: none;
}

.nx-page-hero__sections {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--nx-border);
}

.nx-page-hero__sections-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-right: 8px;
}

.nx-section-pill {
  padding: 8px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nx-muted);
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 100px;
  transition: all 0.25s;
}

.nx-section-pill:hover,
.nx-section-pill.is-active {
  color: #FF5A5F;
  border-color: rgba(255, 90, 95, 0.35);
  background: rgba(255, 90, 95, 0.06);
}

/* Section-specific hero tints */
.nx-page-hero--tech .nx-page-hero__bg::after { background: radial-gradient(circle, rgba(14, 116, 144, 0.1), transparent 70%); }
.nx-page-hero--ai .nx-page-hero__bg::after { background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%); }
.nx-page-hero--sport .nx-page-hero__bg::after { background: radial-gradient(circle, rgba(21, 128, 61, 0.1), transparent 70%); }

/* ─── Topics grid ─── */
.nx-topics {
  padding: 48px 0 64px;
}

.nx-topics__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.nx-topic-card {
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.35s var(--nx-ease), box-shadow 0.35s;
}

.nx-topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--nx-shadow-lg);
}

.nx-topic-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0F172A;
}

.nx-topic-card__media .nx-cat-cover {
  width: 100%;
  height: 100%;
}

.nx-topic-card:hover .nx-cat-cover__photo {
  transform: scale(1.06);
}

.nx-topic-card__overlay,
.nx-topic-card__badge {
  display: none;
}

.nx-topic-card__body {
  padding: 24px;
}

.nx-topic-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.nx-topic-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #FF5A5F, #FF9A3C);
  color: #fff;
  border-radius: 12px;
  font-size: 1rem;
}

.nx-topic-card__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #FF5A5F;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nx-topic-card__body h3 {
  font-family: var(--nx-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.25;
}

.nx-topic-card__body h3 a:hover { color: #FF5A5F; }

.nx-topic-card__body > p {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.55;
  margin: 0 0 12px;
}

.nx-topic-card__ai {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: #6366F1;
  background: rgba(99, 102, 241, 0.06);
  border-radius: 10px;
  margin-bottom: 16px;
  line-height: 1.45;
}

.nx-topic-card__samples {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.nx-topic-card__sample {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.25s;
}

.nx-topic-card__sample:hover { transform: scale(1.08); }

.nx-topic-card__sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nx-topic-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FF5A5F;
}

/* ─── Tags ─── */
.nx-tags-section {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid var(--nx-border);
}

.nx-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.nx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nx-text);
  background: #F8FAFC;
  border: 1px solid var(--nx-border);
  border-radius: 100px;
  transition: all 0.25s;
}

.nx-tag span {
  font-size: 0.75rem;
  color: var(--nx-muted);
}

.nx-tag:hover {
  border-color: #FF5A5F;
  color: #FF5A5F;
  background: rgba(255, 90, 95, 0.05);
}

/* ─── Feature bar (reference bottom) ─── */
.nx-features {
  padding: 56px 0 80px;
  background: #F8FAFC;
  border-top: 1px solid var(--nx-border);
}

.nx-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.nx-features__item {
  text-align: center;
  padding: 24px 16px;
}

.nx-features__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(255, 154, 60, 0.12));
  color: #FF5A5F;
  border-radius: 14px;
  font-size: 1.125rem;
}

.nx-features__item h3 {
  font-family: var(--nx-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.nx-features__item p {
  font-size: 0.875rem;
  color: var(--nx-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Browse / category pages ─── */
.nx-browse {
  padding: 32px 0 80px;
}

.nx-browse__count {
  font-size: 0.875rem;
  color: var(--nx-muted);
  margin-bottom: 20px;
}

.nx-browse__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nx-browse__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── Split card (image + content side by side) ─── */
.nx-card-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--nx-border);
  background: #fff;
  transition: transform 0.35s var(--nx-ease), box-shadow 0.35s var(--nx-ease);
}

.nx-card-split:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-lg);
}

.nx-card-split--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.nx-card-split--reverse .nx-card-split__media {
  order: 2;
}

.nx-card-split--reverse .nx-card-split__body {
  order: 1;
}

.nx-card-split__media {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
}

.nx-card-split__media img,
.nx-card-split__media .blog-cover-img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s var(--nx-ease);
}

.nx-card-split:hover .nx-card-split__media img,
.nx-card-split:hover .nx-card-split__media .blog-cover-img {
  transform: scale(1.04);
}

.nx-card-split__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(15, 23, 42, 0.04) 100%);
  pointer-events: none;
}

.nx-card-split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.nx-card-split__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  color: var(--nx-muted);
}

.nx-card-split__title {
  font-family: var(--nx-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.nx-card-split__title a:hover {
  color: var(--nx-primary);
}

.nx-card-split__excerpt {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.6;
  margin: 0 0 18px;
}

.nx-card-split__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--nx-border);
}

.nx-card-split__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.nx-card-split__read {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--nx-primary);
}

.nx-card-split__read i {
  transition: transform 0.25s;
}

.nx-card-split:hover .nx-card-split__read i {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .nx-card-split,
  .nx-card-split--reverse {
    grid-template-columns: 1fr;
  }

  .nx-card-split--reverse .nx-card-split__media,
  .nx-card-split--reverse .nx-card-split__body {
    order: unset;
  }

  .nx-card-split__media {
    min-height: 200px;
  }
}

.nx-browse__card {
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}

.nx-browse__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow);
}

.nx-browse__thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  flex-shrink: 0;
}

.nx-browse__thumb img,
.nx-browse__thumb .blog-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s;
}

.nx-browse__card:hover .nx-browse__thumb img {
  transform: scale(1.05);
}

.nx-browse__body {
  padding: 20px;
}

.nx-browse__body h3 {
  font-family: var(--nx-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 10px 0 8px;
  line-height: 1.35;
}

.nx-browse__body p {
  font-size: 0.875rem;
  color: var(--nx-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

.nx-empty {
  text-align: center;
  padding: 80px 24px;
  background: #fff;
  border-radius: var(--nx-radius-lg);
  border: 1px solid var(--nx-border);
}

.nx-empty i {
  font-size: 2.5rem;
  color: var(--nx-muted);
  margin-bottom: 16px;
}

/* ─── Trending strip refinement ─── */
.nx-trending {
  padding: 24px 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--nx-border);
}

.nx-trending .nx-section-head {
  margin-bottom: 20px;
  padding: 0 24px;
  max-width: var(--nx-container);
  margin-inline: auto;
}

.nx-trending__card {
  background: #fff;
  border: 1px solid var(--nx-border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

@media (max-width: 900px) {
  .nx-topics__grid { grid-template-columns: 1fr; }
  .nx-browse__grid { grid-template-columns: 1fr; }
  .nx-features__grid { grid-template-columns: repeat(2, 1fr); }
  .nx-page-hero__inner { grid-template-columns: 1fr; }
  .nx-page-hero__visual { display: none; }
}

@media (max-width: 640px) {
  .nx-features__grid { grid-template-columns: 1fr; }
}

.nx-trending-strip {
  padding: 18px 0;
  background: #fff;
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nx-trending-strip__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nx-trending-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF5A5F;
  white-space: nowrap;
}

.nx-trending-strip__topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nx-trending-strip__topics a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nx-text);
  padding: 4px 16px;
  border-right: 1px solid var(--nx-border);
  transition: color 0.2s;
}

.nx-trending-strip__topics a:last-child { border-right: none; }
.nx-trending-strip__topics a:hover { color: #FF5A5F; }

.nx-static { padding: 48px 0 64px; }

.nx-static__lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--nx-muted);
  max-width: 720px;
  margin: 0 0 32px;
}

.nx-static__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nx-static__card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.nx-static__card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.12), rgba(255, 154, 60, 0.12));
  color: #FF5A5F;
  border-radius: 12px;
}

.nx-static__card h3 {
  font-family: var(--nx-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.nx-static__card p {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.55;
  margin: 0;
}

.nx-inline-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: #FF5A5F;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.nx-advertise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.nx-advertise__copy h2 {
  font-family: var(--nx-display);
  font-size: 1.75rem;
  margin: 0 0 16px;
}

.nx-advertise__benefits {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.nx-advertise__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--nx-muted);
}

.nx-advertise__benefits i { color: #FF5A5F; }

.nx-form {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow);
}

.nx-form__field { margin-bottom: 18px; }

.nx-form__field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.nx-form__field input,
.nx-form__field textarea {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  border: 1px solid var(--nx-border);
  border-radius: 12px;
  background: #F8FAFC;
}

.nx-alert--success {
  padding: 14px 18px;
  margin-bottom: 20px;
  background: #ECFDF5;
  color: #047857;
  border-radius: 12px;
}

.nx-writers { padding: 32px 0 80px; }

.nx-writers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nx-writer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--nx-radius-lg);
  transition: transform 0.35s, box-shadow 0.35s;
}

.nx-writer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow);
}

.nx-writer-card__avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FF5A5F, #FF9A3C);
  border-radius: 50%;
  margin-bottom: 16px;
}

.nx-writer-card strong {
  font-family: var(--nx-display);
  font-size: 1.125rem;
}

.nx-writer-card__count {
  font-size: 0.8125rem;
  color: var(--nx-muted);
  margin-top: 4px;
}

.nx-writer-card__link {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #FF5A5F;
}

/* Sort toolbar (browse / category pages) */
.news-sort-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: 14px;
}

.news-sort-toolbar__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-sort-toolbar__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-sort-toolbar__btn {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--nx-muted);
  border: 1px solid var(--nx-border);
  border-radius: 100px;
  background: #F8FAFC;
  text-decoration: none;
  transition: all 0.2s;
}

.news-sort-toolbar__btn:hover,
.news-sort-toolbar__btn.is-active {
  color: #FF5A5F;
  border-color: rgba(255, 90, 95, 0.35);
  background: rgba(255, 90, 95, 0.08);
}

.nx-cat-cover {
  position: relative;
  overflow: hidden;
  background: #0F172A;
}

.nx-cat-cover__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-cat-cover__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.15) 45%, rgba(15, 23, 42, 0.72) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--cat-accent, #FF5A5F) 18%, transparent), transparent 55%);
  pointer-events: none;
}

.nx-cat-cover__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.nx-cat-cover__badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 14px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 90, 95, 0.92);
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nx-cat-cover--hero {
  width: 100%;
  height: 100%;
  border-radius: var(--nx-radius-lg);
}

.nx-cat-cover--hero .nx-cat-cover__shade {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.25));
}

.nx-cat-cover__photo {
  min-height: 100%;
}

.nx-topic-card__sample img,
.nx-browse__thumb .blog-cover-img,
.nx-browse__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nx-topic-card__sample {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  border: 2px solid #fff;
}

@media (max-width: 900px) {
  .nx-static__cards,
  .nx-advertise,
  .nx-writers__grid { grid-template-columns: 1fr; }
}

/* Static pages: show content immediately (no scroll-reveal blank state) */
.nx-static .nx-reveal {
  opacity: 1;
  transform: none;
}

.nx-rss { display: grid; gap: 20px; max-width: 760px; margin: 0 auto 48px; }
.nx-rss__card { background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 20px; padding: 28px 32px; box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05); }
.nx-rss__card h2 { font-family: var(--nx-display, 'Playfair Display', Georgia, serif); font-size: 1.35rem; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.nx-rss__card h2 i { color: #FF5A5F; }
.nx-rss__card p { color: #475569; line-height: 1.7; margin: 0 0 12px; }
.nx-rss__note code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; }
.nx-rss__note--small { font-size: 0.8125rem; margin-top: 12px; margin-bottom: 0; }
.nx-rss__url-wrap { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nx-rss__url { flex: 1; min-width: 220px; padding: 12px 14px; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 10px; background: #f8fafc; }
.nx-rss__hint { font-size: 0.8125rem; color: #16a34a; min-height: 1.25rem; }
.nx-rss__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.nx-rss__list { list-style: none; margin: 0; padding: 0; }
.nx-rss__list li { padding: 14px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.nx-rss__list a { display: block; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.nx-rss__list a:hover { color: #FF5A5F; }
.nx-rss__list span { font-size: 0.8125rem; color: #64748b; }

.nx-policy-effective {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.1), rgba(255, 154, 60, 0.08));
  border: 1px solid rgba(255, 90, 95, 0.22);
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #475569;
}

.nx-policy-effective strong {
  color: #0f172a;
  font-weight: 600;
}

/* ─── Policy / legal document pages ─── */
.nx-static--policy {
  padding: 32px 0 80px;
}

.nx-policy-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.06);
}

body.nexus.nx-page-policy .nx-policy-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

body.nexus.nx-page-policy .nx-policy-content > * {
  opacity: 1 !important;
  transform: none !important;
}

body.nexus.nx-page-policy .nx-policy-content > p:not(.nx-policy-effective) {
  margin-bottom: 16px;
}

body.nexus.nx-page-policy .nx-policy-content .nx-policy-effective + p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #475569;
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.nexus.nx-page-policy .nx-policy-content h2 {
  display: block;
  font-family: var(--nx-display, 'Playfair Display', Georgia, serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a !important;
  margin: 40px 0 14px;
  padding: 0 0 0 16px;
  border-left: 4px solid #FF5A5F;
  border-top: none;
  line-height: 1.35;
}

body.nexus.nx-page-policy .nx-policy-content h2:first-of-type {
  margin-top: 8px;
}

body.nexus.nx-page-policy .nx-policy-content h3 {
  font-family: var(--nx-display, 'Playfair Display', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 24px 0 10px;
}

body.nexus.nx-page-policy .nx-policy-content strong {
  color: #0f172a;
  font-weight: 600;
}

body.nexus.nx-page-policy .nx-policy-content a {
  color: #FF5A5F;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.nexus.nx-page-policy .nx-policy-content a:hover {
  color: #E54E52;
}

body.nexus.nx-page-policy .nx-policy-content ul {
  list-style: none;
  margin: 14px 0 22px;
  padding: 4px 0;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

body.nexus.nx-page-policy .nx-policy-content ol {
  list-style: none;
  counter-reset: nx-policy-counter;
  margin: 14px 0 22px;
  padding: 4px 0;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  overflow: hidden;
}

body.nexus.nx-page-policy .nx-policy-content ul li,
body.nexus.nx-page-policy .nx-policy-content ol li {
  position: relative;
  padding: 11px 20px 11px 44px;
  margin: 0;
  color: #334155;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

body.nexus.nx-page-policy .nx-policy-content ul li:last-child,
body.nexus.nx-page-policy .nx-policy-content ol li:last-child {
  border-bottom: none;
}

body.nexus.nx-page-policy .nx-policy-content ul li::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 1.25em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF5A5F, #FF9A3C);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.14);
  transform: translateY(-50%);
}

body.nexus.nx-page-policy .nx-policy-content ol li {
  counter-increment: nx-policy-counter;
}

body.nexus.nx-page-policy .nx-policy-content ol li::before {
  content: counter(nx-policy-counter);
  position: absolute;
  left: 16px;
  top: 11px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FF5A5F, #FF9A3C);
  border-radius: 50%;
}

body.nexus.nx-page-policy .nx-policy-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.06), rgba(255, 154, 60, 0.04));
  border: 1px solid rgba(255, 90, 95, 0.15);
  border-left: 4px solid #FF5A5F;
  border-radius: 0 12px 12px 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .nx-policy-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  body.nexus.nx-page-policy .nx-policy-content h2 {
    font-size: 1.2rem;
    margin-top: 32px;
  }

  body.nexus.nx-page-policy .nx-policy-content ul li,
  body.nexus.nx-page-policy .nx-policy-content ol li {
    padding-left: 40px;
  }
}

.nx-cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 9999;
  padding: 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(8px);
}

.nx-cookie-consent[hidden] {
  display: none;
}

.nx-cookie-consent__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nx-cookie-consent__content {
  flex: 1 1 320px;
  min-width: 0;
}

.nx-cookie-consent__title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 1rem;
}

.nx-cookie-consent__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.nx-cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nx-cookie-consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.nx-cookie-consent__btn {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.nx-cookie-consent__btn--primary {
  background: var(--nx-accent, #FF5A5F);
  color: #fff;
}

.nx-cookie-consent__btn--primary:hover {
  filter: brightness(1.05);
}

.nx-cookie-consent__btn--secondary {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(248, 250, 252, 0.35);
}

.nx-cookie-consent__btn--secondary:hover {
  background: rgba(248, 250, 252, 0.08);
}

@media (max-width: 640px) {
  .nx-cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nx-cookie-consent__actions {
    width: 100%;
  }

  .nx-cookie-consent__btn {
    flex: 1;
  }
}

