/* ==========================================
   NEWS PAGE

   CONTENTS
   01. News Hero

   BREAKPOINTS
   1100px / 900px / 700px / 600px / 480px / 400px
========================================== */


/* ==========================================
   01. NEWS HERO
========================================== */

.news-hero__panel {
  display: grid;
  grid-template-columns:
    minmax(0, 0.96fr)
    minmax(0, 1.04fr);
  align-items: stretch;
  gap: 28px;

  padding: 16px;
}

.news-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;

  min-width: 0;
}

.news-hero__title {
  max-width: 18ch;
}

.news-hero__description {
  max-width: 610px;
  margin: 0 0 34px;

  font-size: 18px;
  line-height: 1.7;

  color: var(--color-text-soft);
}

.news-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  overflow: hidden;

  border: 1px solid rgba(99, 119, 242, 0.16);
  border-radius: 20px;
}

.news-hero-stat {
  min-width: 0;
  padding: 23px 24px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(245, 247, 255, 0.9)
    );
}

.news-hero-stat:nth-child(odd) {
  border-right: 1px solid rgba(99, 119, 242, 0.14);
}

.news-hero-stat:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(99, 119, 242, 0.14);
}

.news-hero-stat__value {
  display: block;
  margin-bottom: 7px;

  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;

  color: var(--color-accent);
}

.news-hero-stat__label {
  display: block;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;

  color: var(--color-text-soft);
}

.news-hero__media {
  position: relative;
  overflow: hidden;

  width: 100%;
  height: 100%;
  min-height: 0;

  border-radius: 28px;
}

.news-hero__media::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;

  height: 28%;

  content: "";

  background:
    linear-gradient(
      to top,
      rgba(17, 19, 24, 0.24),
      transparent
    );

  pointer-events: none;
}

.news-hero__media img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: 50% 20%;
}


/* NEWS HERO. RESPONSIVE - 1100px */

@media (max-width: 1100px) {
  .news-hero__content {
    padding: 38px 20px 38px 32px;
  }

  .news-hero__description {
    font-size: 17px;
  }

  .news-hero-stat {
    padding: 20px;
  }
}


/* NEWS HERO. RESPONSIVE - 900px */

@media (max-width: 900px) {
  .news-hero__panel {
    display: grid;
    grid-template-columns:
      minmax(0, 0.7fr)
      minmax(0, 1.3fr);
    grid-template-areas:
      "kicker kicker"
      "title title"
      "text text"
      "stats media";
    align-items: stretch;
    gap: 24px;

    padding: 34px;
  }

  .news-hero__content {
    display: contents;
  }

  .news-hero__content .section-kicker {
    grid-area: kicker;

    justify-self: start;
    margin-bottom: 0;
  }

  .news-hero__title {
    grid-area: title;

    max-width: 20ch;
    margin-bottom: 0;

    font-size: 48px;
  }

  .news-hero__description {
    grid-area: text;

    max-width: 760px;
    margin-bottom: 8px;
  }

  .news-hero__stats {
    grid-area: stats;

    grid-template-columns: 1fr;

    width: 100%;
    max-width: none;
  }

  .news-hero-stat:nth-child(odd) {
    border-right: 0;
  }

  .news-hero-stat:not(:last-child) {
    border-bottom: 1px solid rgba(99, 119, 242, 0.14);
  }

  .news-hero__media {
    grid-area: media;

    width: 100%;
    height: auto;
    min-height: 100%;
  }

  .news-hero__media img {
    object-position: center 28%;
  }
}


/* NEWS HERO. RESPONSIVE - 800px */

@media (max-width: 800px) {
  .news-hero__title {
    font-size: 44px;
  }

  .news-hero__description {
    font-size: 16px;
  }
}


/* NEWS HERO. RESPONSIVE - 700px */

@media (max-width: 700px) {
  .news-hero__media {
    height: 480px;
  }
}


/* NEWS HERO. RESPONSIVE - 600px */

@media (max-width: 600px) {
  .news-hero__panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "text"
      "stats"
      "media";

    padding: 26px;
  }

  .news-hero__title {
    font-size: 42px;
  }

  .news-hero__description {
    margin-bottom: 28px;

    font-size: 15px;
  }

  .news-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-radius: 18px;
  }

  .news-hero-stat {
    padding: 18px 16px;
  }

  .news-hero-stat:nth-child(odd) {
    border-right: 1px solid rgba(99, 119, 242, 0.14);
  }

  .news-hero-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(99, 119, 242, 0.14);
  }

  .news-hero-stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .news-hero-stat__value {
    font-size: 31px;
  }

  .news-hero-stat__label {
    font-size: 13px;
  }

  .news-hero__media {
    height: 420px;
    min-height: 0;

    border-radius: 24px;
  }
}


/* NEWS HERO. RESPONSIVE - 480px */

@media (max-width: 480px) {
  .news-hero__panel {
    padding: 20px;
  }

  .news-hero__title {
    font-size: 38px;
  }

  .news-hero__stats {
    grid-template-columns: 1fr;
  }

  .news-hero-stat:nth-child(odd) {
    border-right: 0;
  }

  .news-hero-stat:not(:last-child) {
    border-bottom: 1px solid rgba(99, 119, 242, 0.14);
  }

  .news-hero__media {
    height: 360px;

    border-radius: 22px;
  }
}


/* NEWS HERO. RESPONSIVE - 400px */

@media (max-width: 400px) {
  .news-hero__panel {
    padding: 16px;
  }

  .news-hero__title {
    font-size: 34px;
  }

  .news-hero__media {
    height: 330px;

    border-radius: 20px;
  }
}