/* ============================================================
   News — dark theme
   Asymmetric 1+2 layout: 1 featured (large) + 2 stacked small.
   Hover language (top gradient bar, image depth, arrow chip,
   title color shift) mirrors the products section so the
   page reads as one system.
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  transition:
    transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 320ms ease,
    border-color 280ms ease,
    background 280ms ease;
  display: flex;
  flex-direction: column;
}

/* Top gradient bar — fades in on hover */
.news-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff8b4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 3;
  pointer-events: none;
}
.news-card:hover::before {
  transform: scaleX(1);
}

/* LATEST pill — signals the featured card */
.news-card.featured::after {
  content: "LATEST";
  position: absolute;
  inset-block-start: 18px;
  inset-inline-start: 18px;
  z-index: 4;
  padding: 6px 12px;
  background: var(--color-accent);
  color: #fff;
  font: 600 10px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(255, 77, 6, 0.35);
  pointer-events: none;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
  background: var(--color-surface-2);
}

.news-card-image-wrap {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-surface-2);
  position: relative;
}

/* Cinematic depth gradient on hover */
.news-card-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 26, 54, 0.45) 100%);
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 1;
  pointer-events: none;
}
.news-card:hover .news-card-image-wrap::before {
  opacity: 1;
}

/* Hover arrow chip — top-right of the image */
.news-card-image-wrap::after {
  content: "→";
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  font: 600 18px/1 var(--font-display);
  z-index: 2;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 280ms ease,
    transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 6px 20px rgba(255, 77, 6, 0.4);
  pointer-events: none;
}
.news-card:hover .news-card-image-wrap::after {
  opacity: 1;
  transform: scale(1);
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.news-card:hover .news-card-image {
  transform: scale(1.08);
}

.news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-card-date {
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-card-date::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  flex-shrink: 0;
}

.news-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: color 220ms ease;
}
.news-card:hover h4 {
  color: var(--color-accent);
}

.news-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* Featured news card — spans 2 rows, larger image + headline */
.news-card.featured {
  grid-row: span 2;
}
.news-card.featured .news-card-image-wrap {
  aspect-ratio: 4 / 3;
  flex: 1;
}
.news-card.featured .news-card-body {
  padding: 28px;
  gap: 12px;
}
.news-card.featured h4 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.news-card.featured p {
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-card.featured {
    grid-row: span 1;
    grid-column: span 2;
  }
  .news-card.featured .news-card-image-wrap {
    aspect-ratio: 16/9;
  }
}
@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card.featured {
    grid-column: span 1;
  }
  .news-card.featured h4 {
    font-size: 22px;
  }
  .news-card-image-wrap::after {
    width: 36px;
    height: 36px;
    font-size: 16px;
    inset-block-start: 14px;
    inset-inline-end: 14px;
  }
}
