.news-page,
.news-page *,
.news-page *::before,
.news-page *::after {
  box-sizing: border-box;
}

.news-page {
  overflow: hidden;
  background: var(--ntp-white);
}

.news-archive {
  padding-top: 45px;
  padding-bottom: 90px;
  background: var(--ntp-white);
}

/* FILTERI */

.news-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 55px;
}

.news-filter {
  min-width: 112px;
  padding: 7px 20px;
  border: 1px solid var(--ntp-blue) !important;
  border-radius: 999px;
  color: var(--ntp-blue);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition:
    color 250ms ease,
    background-color 250ms ease,
    box-shadow 250ms ease;
}

.news-filter:hover,
.news-filter.is-active {
  color: var(--ntp-white);
  background: var(--ntp-blue);
  box-shadow: 0 5px 15px rgba(0, 174, 239, 0.18);
}

/* RESULTS LAYOUT */

.news-results {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 55px;
  transition: opacity 250ms ease;
}

.news-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* FEATURED */

.news-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 55px;
  grid-column: 1 / -1;
  padding-bottom: 55px;
}

article.news-featured {
  border-bottom: 1px solid var(--ntp-blue);
}

.news-featured__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 640 / 400;
  background: #f5f5f6;
}

.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.news-featured__image:hover img {
  transform: scale(1.035);
}

.news-featured__content {
  max-width: 720px;
}

.news-featured__title {
  margin: 10px 0 18px;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.18;
}

.news-featured__title a {
  color: var(--ntp-black);
  transition: color 250ms ease;
}

.news-featured__title a:hover {
  color: var(--ntp-blue);
}

.news-featured__excerpt {
  max-width: 650px;
  margin-bottom: 20px;
  color: var(--ntp-text-body);
  font-size: 15px;
  line-height: 1.7;
}

/* STANDARD CARD */

.news-card {
  min-width: 0;
}

.news-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 320 / 213;
  margin-bottom: 18px;
  background: #f5f5f6;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.news-card__image:hover img {
  transform: scale(1.045);
}

.news-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #b6b8bb;
  background: #f6f6f8;
  font-size: 11px;
}

.news-card__category {
  display: block;
  color: var(--ntp-blue);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.news-card__title {
  margin: 11px 0 13px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
}

.news-card__title a {
  color: var(--ntp-black);
  transition: color 250ms ease;
}

.news-card__title a:hover {
  color: var(--ntp-blue);
}

.news-card__excerpt {
  margin-bottom: 17px;
  color: var(--ntp-text-body);
  font-size: 13px;
  line-height: 1.6;
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  color: #999;
  font-size: 11px;
}

.news-card__meta span {
  position: relative;
  padding-left: 13px;
}

.news-card__meta span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #999;
  transform: translateY(-50%);
}

/* LOAD MORE */

.news-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 75px;
}

.news-load-more {
  min-width: 210px;
  border: none;
}

.news-load-more.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.news-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px solid var(--ntp-border);
  color: var(--ntp-text-body);
  text-align: center;
}

.news-pagination {
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

.news-pagination__button {
  font-size: 18px;
  font-weight: 700;
  color: var(--ntp-black);
  transition: all 0.3s ease;
}

.news-pagination__button:hover {
  background-color: var(--ntp-blue);
}

/* TABLET */

@media (max-width: 1199px) {
  .news-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px 25px;
  }

  .news-featured {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .news-archive {
    padding-bottom: 75px;
  }

  .news-filters {
    gap: 12px;
    margin-bottom: 45px;
  }

  .news-filter {
    min-width: 100px;
  }

  .news-featured {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-featured__image {
    max-height: 470px;
  }

  .news-featured__title {
    font-size: 30px;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  .news-archive {
    padding-top: 35px;
    padding-bottom: 60px;
  }

  .news-filters {
    flex-wrap: nowrap;
    width: calc(100% + 40px);
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .news-filters::-webkit-scrollbar {
    display: none;
  }

  .news-filter {
    flex: 0 0 auto;
    min-width: auto;
    padding: 8px 20px;
  }

  .news-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 18px;
  }

  .news-featured {
    grid-column: 1 / -1;
    padding-bottom: 40px;
  }

  .news-featured__title {
    font-size: 27px;
  }

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

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

  .news-card__excerpt {
    display: none;
  }

  .news-card__meta {
    display: grid;
    gap: 4px;
  }

  .news-card__meta span {
    padding-left: 0;
  }

  .news-card__meta span::before {
    display: none;
  }

  .news-load-more-wrap {
    margin-top: 55px;
  }
}

@media (max-width: 479px) {
  .news-results {
    grid-template-columns: 1fr;
  }

  .news-featured__image {
    aspect-ratio: 16 / 10;
  }

  .news-featured__title {
    font-size: 25px;
  }

  .news-card {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 16px;
  }

  .news-card__image {
    margin-bottom: 0;
  }

  .news-card__category {
    letter-spacing: 2px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .news-page *,
  .news-page *::before,
  .news-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}