.news-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 80px 0;
  text-align: center;
}

.news-hero__eyebrow {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-nav-active);
}

.news-hero__title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 32px;
  line-height: 150%;
  letter-spacing: 1px;
  color: var(--color-heading);
}

@media (max-width: 600px) {
  .news-hero__title {
    font-size: 24px;
  }
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 0 0 40px;
}

.news-filter__item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 10px 20px;
  background: #e5e5e5;
  border: 1px solid transparent;
  border-radius: 20px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  letter-spacing: 1px;
  color: var(--color-heading);
  cursor: pointer;
  white-space: nowrap;
}

.news-filter__item.is-active {
  background: var(--color-nav-active);
  border-color: var(--color-nav-active);
  font-weight: 500;
  color: #f1f8fd;
}

@media (max-width: 600px) {
  .news-filter {
    gap: 12px;
  }

  .news-filter__item {
    height: 40px;
    padding: 8px 16px;
    font-size: 15px;
  }
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 54px;
  width: 100%;
  padding-bottom: 80px;
}

.news-grid__row {
  display: flex;
  gap: 24px;
  width: 100%;
}

.news-card {
  display: block;
  position: relative;
  flex: 1;
  min-width: 0;
  height: 413px;
  border-radius: 24px;
  background-color: #f3f3f3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
}

/* Hover (ana səhifə "Fəaliyyətlərimiz" kartları ilə eyni, Figma "State=Hover"):
   şəkil 413 → 464px böyüyür (scale 1.1235, kənarlar kəsilir), gradientin 0.2 nöqtəsi
   65.61% → 89.13%-ə qalxır. ::before kartın inline background-image-ini miras alır. */
@property --news-grad-stop {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 65.61%;
}

.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.5s ease;
  pointer-events: none;
}

.news-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0.08deg, rgba(0, 0, 0, 0.8) 17.65%, rgba(0, 0, 0, 0.2) var(--news-grad-stop), rgba(0, 0, 0, 0) 113.57%);
  transition: --news-grad-stop 0.5s ease;
}

@media (hover: hover) {
  .news-card:hover::before {
    transform: scale(1.1235);
  }

  .news-card:hover .news-card__gradient {
    --news-grad-stop: 89.13%;
  }
}

.news-card__content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card__date {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #ffffff;
}

.news-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  color: #ffffff;
}

@media (max-width: 900px) {
  .news-grid__row {
    flex-direction: column;
  }

  .news-card {
    /* flex:1 (basis 0) collapsed the card to 0px in the column layout (601-900px) */
    flex: none;
    height: 320px;
  }
}

/*
 * Figma mobil (390px) dizaynı. Hero mərkəzdə qalır (Figma text-align:center verir),
 * başlıq 14px. Filter pill-ləri 38px, sətir arası 10px / sütun arası 20px.
 * Kartlar tam-en kvadrat. Figma-da 1-ci kartın tarix/başlığı 14/16px, 2-ci/3-cü
 * kartınkı 16/18px idi (ziddiyyət) — əksəriyyət (və desktop) dəyəri 16/18 saxlanıldı.
 */
@media (max-width: 600px) {
  .news-hero {
    padding-bottom: 32px;
  }

  .news-hero__eyebrow {
    font-size: 16px;
    line-height: 24px;
    color: #2386c8;
  }

  .news-hero__title {
    font-size: 14px;
    line-height: 150%;
    color: #0f2942;
  }

  .news-filter {
    row-gap: 10px;
    column-gap: 20px;
    padding-bottom: 48px;
  }

  .news-filter__item {
    height: 38px;
    padding: 10px 20px;
    border-radius: 18px;
    background: #e5e7eb;
    font-size: 14px;
    line-height: 18px;
    color: #1d304e;
  }

  .news-filter__item.is-active {
    background: #3b99e0;
    border-color: #3b99e0;
    color: #f2f8fd;
  }

  .news-grid {
    gap: 24px;
  }

  .news-grid__row {
    gap: 24px;
  }

  .news-card {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* Figma mobil "Frame 94": 309×79, kartın kənarlarından 20px; tarix 14px/500, başlıq 16px/700 */
  .news-card__content {
    left: 20px;
    right: 20px;
    bottom: 20px;
    gap: 10px;
  }

  .news-card__date {
    font-size: 14px;
  }

  .news-card__title {
    font-size: 16px;
  }
}
