/* Section 4 — Xəbərlər: press coverage.

   White band, following the green company section. The colour split is doing
   editorial work: green is the company speaking about itself, white is somebody
   else's voice quoted. It also lets the page alternate rather than stack four
   pale blocks in a row.

   One wide frame rather than a card grid: there is a single piece of coverage,
   and a lone card in a grid reads as something missing. */

.news-section {
  background: var(--paper-000);
  border-top: var(--border-hairline);
  padding-block: var(--space-section);
  scroll-margin-top: 96px;
}

.news-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.news-list {
  display: grid;
  gap: var(--space-5);
}

/* The frame. Left column carries date and source, the right the headline —
   the same "label, then substance" rhythm as the product rows. */
.news-item {
  display: grid;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: var(--border-strong);
  background: var(--paper-000);
  transition:
    background-color var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}
.news-item:hover {
  background: var(--green-050);
  border-color: var(--green-600);
}

.news-item__meta {
  display: grid;
  gap: var(--space-2);
  padding-top: 0.35rem;
}
.news-item__date {
  font-size: var(--text-small);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--green-700);
  letter-spacing: 0.02em;
}
.news-item__source {
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-300);
}

/* Stands in for the date when a source publishes none, and marks the item as
   something to watch rather than read. Sized to match the date it replaces so
   the column keeps its rhythm down the list. */
.news-item__kind {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: start;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-700);
}
.news-item__kind::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

.news-item__body {
  display: grid;
  gap: var(--space-6);
}

.news-item__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  max-width: 26ch;
  transition: transform var(--duration-base) var(--ease-out);
}
.news-item:hover .news-item__headline { transform: translateX(8px); }

.news-item__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--ink-900);
}
/* The arrow leaves the page, so it points out rather than down. */
.news-item:hover .circle-btn {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
}
.news-item:hover .circle-btn .arrow { transform: rotate(45deg) translate(2px, -2px); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Stack: at this width the two columns would each be too narrow to read, and
     the date belongs above the headline anyway once they are in one column. */
  .news-item {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .news-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding-top: 0;
  }
  .news-item__headline { max-width: none; }
  .news-item:hover .news-item__headline { transform: none; }
}
