/* Home cards: tiny refinements while keeping tokens.css as the base */
.cards-section { scroll-margin-top: 96px; }
.cards-grid .card { 
  background: var(--nt-white); 
  border: 1px solid var(--nt-mist); 
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(19,25,34,0.10);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.cards-grid .card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(19,25,34,0.12);
}
.cards-grid .card .title { font-family: var(--font-display); color: var(--nt-ink); }
.cards-grid .card .desc { color: var(--nt-slate); }
.cards-grid .card .icon-chip { width: 48px; height: 48px; }

.novic-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1023px) {
  .novic-mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
  }
  .novic-mosaic-card {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .novic-mosaic-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
  }
  .novic-mosaic-card {
    min-width: 0;
  }
}
.novic-mosaic-card {
  min-height: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(19,25,34,0.08);
  border: 1px solid var(--nt-mist);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.novic-mosaic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(19,25,34,0.12);
}

.novic-mosaic-card .card-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 1rem;
}

.novic-mosaic-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Generic helper: make an image fully cover its parent frame (use on <img>) */
.img-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}