@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

:root {
  --nh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --nh-font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --nh-black:       #0a0a0a;
  --nh-black-soft:  #1a1a1a;
  --nh-gray-900:    #111111;
  --nh-gray-800:    #1f1f1f;
  --nh-gray-700:    #333333;
  --nh-gray-600:    #555555;
  --nh-gray-500:    #777777;
  --nh-gray-400:    #999999;
  --nh-gray-300:    #cccccc;
  --nh-gray-200:    #e0e0e0;
  --nh-gray-100:    #f0f0f0;
  --nh-gray-50:     #f7f7f7;
  --nh-white:       #ffffff;
  --nh-accent:      #d32f2f;
  --nh-accent-dark: #b71c1c;
  --nh-container:   1200px;
  --nh-ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide default theme page title on front page */
body.home #pagetitle,
body.home .page-title.bg-overlay,
body.home .page-title-wrap,
body.home #page-title {
  display: none !important;
}

body.home .content-inner {
  padding-top: 0 !important;
}

/* Adjust for Nimmo theme header spacing */
body.home #content {
  padding-top: 0;
}

/* =============================================================
   CONTAINER
   ============================================================= */
.nh-container {
  max-width: var(--nh-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================================
   TRENDING / BREAKING NEWS BAR
   ============================================================= */
.nh-trending {
  background: var(--nh-black);
  border-bottom: 3px solid var(--nh-accent);
  position: relative;
  z-index: 10;
}

.nh-trending__inner {
  display: flex;
  align-items: center;
  height: 44px;
  overflow: hidden;
}

.nh-trending__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nh-accent);
  color: #fff;
  font-family: var(--nh-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px;
  height: 100%;
  flex-shrink: 0;
  white-space: nowrap;
}

.nh-trending__label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: nh-pulse 1.5s ease-in-out infinite;
}

@keyframes nh-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nh-trending__ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0 16px;
  flex: 1;
  white-space: nowrap;
}

.nh-trending__item {
  color: rgba(255,255,255,0.85);
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: color 0.15s var(--nh-ease);
  white-space: nowrap;
  display: none;
}

.nh-trending__item.active {
  display: inline-block;
}

.nh-trending__item:hover {
  color: #fff;
}

/* =============================================================
   HERO SECTION
   ============================================================= */
.nh-hero {
  padding: 28px 0 32px;
  background: var(--nh-white);
  border-bottom: 1px solid var(--nh-gray-200);
}

.nh-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.nh-hero__main {
  position: relative;
  grid-column: 1 / -1;
}

.nh-hero__link {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--nh-black);
}

.nh-hero__image-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  background: var(--nh-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.nh-hero__image-wrap::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 1;
}

.nh-hero__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.6s var(--nh-ease);
  border-radius: 2px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}

.nh-hero__link:hover .nh-hero__image {
  transform: scale(1.02);
}

.nh-hero__overlay {
  position: absolute;
  inset: 12px;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.88) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}

.nh-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px 36px;
  z-index: 2;
}

.nh-hero__category {
  display: inline-block;
  font-family: var(--nh-font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--nh-accent);
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.nh-hero__title {
  font-family: var(--nh-font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: pretty;
}

.nh-hero__excerpt {
  font-family: var(--nh-font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-hero__meta {
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.nh-hero__meta-sep {
  margin: 0 6px;
  opacity: 0.5;
}

/* Hero Side Posts */
.nh-hero__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  grid-column: 1 / -1;
}

.nh-hero__side-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--nh-gray-50);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s var(--nh-ease);
  border: 1px solid var(--nh-gray-100);
}

.nh-hero__side-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.10);
  border-color: var(--nh-gray-300);
}

.nh-hero__side-image-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.nh-hero__side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--nh-ease);
}

.nh-hero__side-item:hover .nh-hero__side-image {
  transform: scale(1.06);
}

.nh-hero__side-content {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nh-hero__side-category {
  display: inline-block;
  font-family: var(--nh-font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nh-accent);
  margin-bottom: 6px;
}

.nh-hero__side-title {
  font-family: var(--nh-font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--nh-black);
  line-height: 1.3;
  margin: 0 0 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-hero__side-date {
  font-family: var(--nh-font-sans);
  font-size: 0.75rem;
  color: var(--nh-gray-500);
}

/* =============================================================
   AD BANNER
   ============================================================= */
.nh-ad {
  background: var(--nh-gray-50);
  border-top: 1px solid var(--nh-gray-200);
  border-bottom: 1px solid var(--nh-gray-200);
  padding: 16px 0;
}

.nh-ad__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nh-ad__label {
  font-family: var(--nh-font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--nh-gray-400);
}

.nh-ad__slot {
  width: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nh-white);
  border: 1px dashed var(--nh-gray-300);
  border-radius: 8px;
}

/* =============================================================
   MAIN CONTENT GRID
   ============================================================= */
.nh-main {
  padding: 32px 0 60px;
  background: var(--nh-white);
}

.nh-main__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* =============================================================
   NEWS GRID — Card Layout
   ============================================================= */
.nh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Featured card spans full width */
.nh-grid .nh-card:first-child {
  grid-column: 1 / -1;
}

.nh-card:first-child .nh-card__image-wrap {
  height: 260px;
}

.nh-card:first-child .nh-card__title {
  font-size: 1.3rem;
}

/* Card */
.nh-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--nh-white);
  border: 1px solid var(--nh-gray-200);
  transition: all 0.3s var(--nh-ease);
}

.nh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.10);
  border-color: var(--nh-gray-400);
}

.nh-card__link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.nh-card__image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--nh-gray-100);
}

.nh-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--nh-ease);
}

.nh-card:hover .nh-card__image {
  transform: scale(1.06);
}

.nh-card__category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--nh-font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--nh-accent);
  padding: 3px 10px;
  border-radius: 3px;
  z-index: 2;
}

.nh-card__body {
  padding: 16px 18px 20px;
}

.nh-card__title {
  font-family: var(--nh-font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--nh-black);
  line-height: 1.28;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s var(--nh-ease);
}

.nh-card:hover .nh-card__title {
  color: var(--nh-accent);
}

.nh-card__excerpt {
  font-family: var(--nh-font-sans);
  font-size: 0.875rem;
  color: var(--nh-gray-600);
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--nh-font-sans);
  font-size: 0.75rem;
  color: var(--nh-gray-500);
}

.nh-card__author {
  font-weight: 600;
  color: var(--nh-gray-700);
}

.nh-card__meta-sep {
  color: var(--nh-gray-300);
}

.nh-card__date,
.nh-card__readtime {
  color: var(--nh-gray-500);
}

/* =============================================================
   PAGINATION
   ============================================================= */
.nh-pagination {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--nh-gray-200);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nh-pagination a,
.nh-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-family: var(--nh-font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nh-gray-700);
  background: var(--nh-gray-50);
  border: 1px solid var(--nh-gray-200);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s var(--nh-ease);
}

.nh-pagination a:hover {
  background: var(--nh-black);
  color: #fff;
  border-color: var(--nh-black);
}

.nh-pagination .current {
  background: var(--nh-black);
  color: #fff;
  border-color: var(--nh-black);
}

.nh-no-posts {
  font-family: var(--nh-font-sans);
  font-size: 1.125rem;
  color: var(--nh-gray-500);
  text-align: center;
  padding: 60px 0;
}

/* =============================================================
   SIDEBAR
   ============================================================= */
.nh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nh-sidebar__widget {
  background: var(--nh-white);
  border: 1px solid var(--nh-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.nh-sidebar__widget-title {
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nh-black);
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid var(--nh-gray-200);
}

/* Subscribe Widget */
.nh-sidebar__subscribe {
  padding: 24px 20px;
  background: var(--nh-black);
  color: #fff;
}

.nh-sidebar__sub-eyebrow {
  font-family: var(--nh-font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 8px;
}

.nh-sidebar__sub-title {
  font-family: var(--nh-font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 20px;
}

.nh-sidebar__sub-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  color: var(--nh-black);
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  box-sizing: border-box;
}

.nh-sidebar__sub-btn:hover {
  background: var(--nh-gray-100);
  transform: translateY(-1px);
  color: var(--nh-black);
}

/* Trending sidebar */
.nh-sidebar__trending-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--nh-gray-100);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.15s;
}

.nh-sidebar__trending-item:last-child {
  border-bottom: none;
}

.nh-sidebar__trending-item:hover {
  background: var(--nh-gray-50);
}

.nh-trending--leave {
  transform: translateY(-100%);
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
}

.nh-sidebar__trending-num {
  font-family: var(--nh-font-sans);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--nh-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 28px;
}

.nh-sidebar__trending-title {
  font-family: var(--nh-font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nh-black);
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-sidebar__trending-date {
  font-family: var(--nh-font-sans);
  font-size: 0.6875rem;
  color: var(--nh-gray-500);
}

/* Sidebar WordPress default widgets styling */
.nh-sidebar .widget {
  font-family: var(--nh-font-sans);
  font-size: 0.875rem;
  color: var(--nh-gray-700);
  padding: 20px;
}

.nh-sidebar .widget-title {
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nh-black);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--nh-black);
}

.nh-sidebar .widget a {
  color: var(--nh-gray-700);
  text-decoration: none;
  transition: color 0.15s;
}

.nh-sidebar .widget a:hover {
  color: var(--nh-accent);
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet (768-1023px) */
@media (max-width: 1023px) {
  .nh-main__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nh-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .nh-hero__image-wrap {
    height: 340px;
  }

  .nh-hero__content {
    padding: 28px 24px 24px;
  }

  .nh-hero__title {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .nh-trending__ticker {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nh-hero__grid {
    gap: 16px;
  }

  .nh-hero__image-wrap {
    height: 240px;
  }

  .nh-hero__content {
    padding: 20px 18px 18px;
  }

  .nh-hero__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .nh-hero__excerpt {
    font-size: 0.8125rem;
    -webkit-line-clamp: 1;
    margin-bottom: 8px;
  }

  .nh-hero__side {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nh-hero__side-image-wrap {
    height: 160px;
  }

  .nh-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nh-card:first-child .nh-card__image-wrap {
    height: 200px;
  }

  .nh-card:first-child .nh-card__title {
    font-size: 1.1rem;
  }

  .nh-card__image-wrap {
    height: 180px;
  }

  .nh-sidebar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .nh-ad {
    padding: 12px 0;
  }

  .nh-container {
    padding: 0 14px;
  }

  .nh-pagination {
    gap: 6px;
  }

  .nh-pagination a,
  .nh-pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .nh-main {
    padding: 20px 0 40px;
  }
}

/* Small phones (< 480px) */
@media (max-width: 479px) {
  .nh-hero__image-wrap {
    height: 200px;
  }

  .nh-hero__title {
    font-size: 1.1rem;
  }

  .nh-hero__category {
    font-size: 0.625rem;
    padding: 3px 8px;
    margin-bottom: 8px;
  }

  .nh-card__image-wrap {
    height: 160px;
  }
}

/* =============================================================
   DARK MODE
   ============================================================= */
@media (prefers-color-scheme: dark) {
  .nh-hero,
  .nh-main,
  .nh-card,
  .nh-sidebar__widget {
    background: #0d0d0d;
  }

  .nh-hero__grid {
    border-color: #222;
  }

  .nh-hero__image-wrap {
    background: #151515;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  }

  .nh-hero__image {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
  }

  .nh-hero__image-wrap::after {
    border-color: rgba(255,255,255,0.06);
  }

  .nh-card {
    border-color: #222;
  }

  .nh-card:hover {
    border-color: #444;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
  }

  .nh-card__body {
    background: #0d0d0d;
  }

  .nh-card__title {
    color: #e8e8e8;
  }

  .nh-card__excerpt {
    color: #888;
  }

  .nh-card__meta {
    color: #666;
  }

  .nh-card__author {
    color: #bbb;
  }

  .nh-hero__side-item {
    background: #151515;
    border-color: #222;
  }

  .nh-hero__side-item:hover {
    border-color: #444;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
  }

  .nh-hero__side-title {
    color: #e8e8e8;
  }

  .nh-ad {
    background: #111;
    border-color: #222;
  }

  .nh-ad__slot {
    background: #0d0d0d;
    border-color: #333;
  }

  .nh-sidebar__widget {
    border-color: #222;
  }

  .nh-sidebar__widget-title {
    color: #e8e8e8;
    border-color: #222;
  }

  .nh-sidebar__trending-title {
    color: #e8e8e8;
  }

  .nh-sidebar__trending-item {
    border-color: #222;
  }

  .nh-sidebar__trending-item:hover {
    background: #151515;
  }

  .nh-pagination a,
  .nh-pagination span {
    background: #1a1a1a;
    border-color: #333;
    color: #bbb;
  }

  .nh-pagination a:hover,
  .nh-pagination .current {
    background: #e8e8e8;
    color: #0d0d0d;
    border-color: #e8e8e8;
  }

  .nh-main__grid {
    border-color: #222;
  }

  .nh-sidebar .widget {
    color: #bbb;
  }

  .nh-sidebar .widget a {
    color: #bbb;
  }

  .nh-sidebar .widget a:hover {
    color: var(--nh-accent);
  }
}

/* =============================================================
   CRYPTO TICKER
   ============================================================= */
.nh-crypto {
  background: linear-gradient(135deg, #0b0e17 0%, #131826 50%, #0b0e17 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.nh-crypto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,200,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.nh-crypto__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.nh-crypto__label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--nh-font-sans);
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  margin-right: 18px;
  user-select: none;
}

.nh-crypto__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: nh-crypto-pulse 1.8s ease-in-out infinite;
}

@keyframes nh-crypto-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.nh-crypto__scroll {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.nh-crypto__track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.nh-crypto__coin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.nh-crypto__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.nh-crypto__name {
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  min-width: 32px;
}

.nh-crypto__price {
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  font-variant-numeric: tabular-nums;
}

.nh-crypto__change {
  font-weight: 700;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.nh-crypto__change--up {
  color: #22c55e;
}

.nh-crypto__change--down {
  color: #ef4444;
}

/* Dark mode override for crypto (already dark) */
@media (prefers-color-scheme: dark) {
  .nh-crypto {
    background: linear-gradient(135deg, #05080f 0%, #0c1120 50%, #05080f 100%);
    border-color: rgba(255,255,255,0.04);
  }
}

/* =============================================================
   CATEGORY TABS
   ============================================================= */
.nh-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nh-gray-200);
}

.nh-cat-tabs__btn {
  font-family: var(--nh-font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid var(--nh-gray-200);
  border-radius: 100px;
  background: var(--nh-white);
  color: var(--nh-gray-600);
  cursor: pointer;
  transition: all 0.15s var(--nh-ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nh-cat-tabs__btn:hover {
  border-color: var(--nh-gray-400);
  color: var(--nh-black);
  background: var(--nh-gray-50);
}

.nh-cat-tabs__btn--active {
  background: var(--nh-black);
  color: #fff;
  border-color: var(--nh-black);
}

.nh-cat-tabs__btn--active:hover {
  background: var(--nh-black);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .nh-cat-tabs {
    border-color: #222;
  }

  .nh-cat-tabs__btn {
    background: #1a1a1a;
    border-color: #333;
    color: #888;
  }

  .nh-cat-tabs__btn:hover {
    border-color: #555;
    color: #e8e8e8;
    background: #222;
  }

  .nh-cat-tabs__btn--active {
    background: #e8e8e8;
    color: #0d0d0d;
    border-color: #e8e8e8;
  }

  .nh-cat-tabs__btn--active:hover {
    background: #e8e8e8;
    color: #0d0d0d;
    border-color: #e8e8e8;
  }
}

/* =============================================================
   SCROLL REVEAL ANIMATION
   ============================================================= */
.nh-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nh-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of .nh-grid */
.nh-grid .nh-reveal:nth-child(2) { transition-delay: 0.05s; }
.nh-grid .nh-reveal:nth-child(3) { transition-delay: 0.1s; }
.nh-grid .nh-reveal:nth-child(4) { transition-delay: 0.15s; }
.nh-grid .nh-reveal:nth-child(5) { transition-delay: 0.2s; }
.nh-grid .nh-reveal:nth-child(6) { transition-delay: 0.25s; }

/* =============================================================
   ENHANCED HOVER MICRO-INTERACTIONS
   ============================================================= */
.nh-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

.nh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.nh-card__link {
  position: relative;
  z-index: 1;
}

.nh-hero__side-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nh-hero__side-item:hover {
  transform: translateY(-3px);
}

.nh-trending__item {
  transition: opacity 0.4s ease, color 0.15s ease;
}

.nh-trending__item:hover {
  color: var(--nh-accent);
}

/* =============================================================
   RESPONSIVE — CRYPTO + TABS
   ============================================================= */
@media (max-width: 767px) {
  .nh-crypto__inner {
    height: 38px;
  }

  .nh-crypto__label {
    font-size: 0.625rem;
    padding-right: 12px;
    margin-right: 12px;
  }

  .nh-crypto__coin {
    padding: 0 14px;
    font-size: 0.75rem;
  }

  .nh-crypto__name {
    min-width: 30px;
  }

  .nh-cat-tabs {
    gap: 5px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .nh-cat-tabs__btn {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
}
