/* ==========================================================================
   News page
   ========================================================================== */

.page-news .site-header__top,
.page-news .site-header__bar {
  background-color: #FFFFFF;
  background-image: none;
}

.page-news .site-header__top {
  background: #F5F5F5;
}

.page-news .site-header__bar {
  background: #FFFFFF;
}

.page-news .header-nav__link {
  color: #171A24;
}

.page-news .burger__line {
  background-color: #171A24;
}

.news-page {
  width: 100%;
  background: #FFFFFF;
  color: #171A24;
  padding-top: calc(var(--site-header-height-mobile) + 16px);
  padding-bottom: 60px;
  background: #F5F5F5;
}

.news-page .container {
  padding-left: 8px;
  padding-right: 8px;
}

.news-page__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Breadcrumbs */

.breadcrumbs__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs__link {
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(23, 26, 36, 0.8);
  text-decoration: none;
}

.breadcrumbs__separator {
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(23, 26, 36, 0.2);
}

.breadcrumbs__current {
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(23, 26, 36, 0.2);
}

/* Title */

.news-page__title {
  margin: 24px 0 0;
  font-family: var(--font-family-numeric);
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: var(--letter-spacing-tight);
  color: #171A24;
}

/* Filters */

.news-page__filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.news-page .news-filter {
  min-height: 40px;
  min-width: 50px;
  padding: 7px 12px 8px;
  font-size: 13px;
  line-height: 18px;
  border-radius: 24px;
}

/* Grid */

.news-page__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.news-page__item {
  width: calc((100% - 8px) / 2);
  flex: none;
}

.news-page__item[hidden] {
  display: none;
}

/* Card */

.news-page-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  color: #FFFFFF;
  aspect-ratio: 3 / 2;
  text-decoration: none;
}

.news-page-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.news-page-card__image.logo{
    object-fit: contain;
}
.news-page-card__shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 26, 36, 0.3) 50.07%,
    rgba(23, 26, 36, 0.8) 90.23%
  );
}

.news-page-card__logo {
  position: absolute;
  top: 8px;
  right: 8px;
  max-width: 64px;
  font-family: var(--font-family-numeric);
  font-weight: 700;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: var(--letter-spacing-tight);
  text-align: right;
}

.news-page-card__content {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.news-page-card__title {
  font-family: var(--font-family-base);
  font-weight: 600;
  font-size: 14px;
  line-height: 120%;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.news-page-card__date {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

.news-page-card__date-icon {
  width: 12px;
  height: 12px;
  color: currentColor;
  flex: none;
}

.news-page-card__date-text {
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 11px;
  line-height: 15px;
  letter-spacing: var(--letter-spacing-tight);
}

/* Pagination */

.news-pagination {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
}

.news-pagination__summary {
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: rgba(23, 26, 36, 0.8);
  opacity: 0.4;
}

.news-pagination__list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination__item {
  flex: none;
}

.news-pagination__link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(23, 26, 36, 0.1);
  background: #FFFFFF;
  font-family: var(--font-family-base);
  font-weight: 600;
  font-size: 15px;
  line-height: 100%;
  color: #171A24;
  text-decoration: none;
}

.news-pagination__link--active {
  background: #FF6B35;
  border-color: #FF6B35;
  color: #FFFFFF;
}

.news-pagination__link--dots {
  border: none;
  background: transparent;
  opacity: 0.6;
}

.news-pagination__link--next {
  padding: 0;
}

.news-pagination__next-icon {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
}

@media (min-width: 768px) {
  .news-page {
    padding-top: calc(var(--site-header-height-desktop) + 16px);
    padding-bottom: 80px;
  }

  .news-page .container {
    padding-left: 0;
    padding-right: 0;
  }

  .news-page__head {
    gap: 0;
  }

  .breadcrumbs__link,
  .breadcrumbs__separator,
  .breadcrumbs__current {
    font-weight: 400;
    font-size: 14px;
    line-height: 19px;
  }

  .breadcrumbs__list {
    gap: 10px;
  }

  .news-page__title {
    margin-top: 32px;
    font-size: 52px;
    line-height: 62px;
  }

  .news-page__filters {
    gap: 8px;
    margin-top: 24px;
  }

  .news-page .news-filter {
    min-height: 45px;
    min-width: 0;
    padding: 7px 16px 8px;
    font-size: 17px;
    line-height: 23px;
    border-radius: 35px;
  }

  .news-page__grid {
    gap: 20px;
    margin-top: 16px;
  }

  .news-page__item {
    width: calc((100% - 40px) / 3);
  }

  .news-page-card {
    border-radius: 24px;
  }

  .news-page-card__shadow {
    background: linear-gradient(
      180deg,
      rgba(23, 26, 36, 0.3) 14.92%,
      rgba(23, 26, 36, 0.15) 50.07%,
      #171A24 100%
    );
  }

  .news-page-card__logo {
    top: 16px;
    right: 16px;
    max-width: 110px;
    font-size: 18px;
    line-height: 22px;
  }

  .news-page-card__content {
    display: contents;
  }

  .news-page-card__title {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 60px;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    text-shadow: none;
  }

  .news-page-card__date {
    position: absolute;
    left: 20px;
    bottom: 24px;
    gap: 8px;
  }

  .news-page-card__date-icon {
    width: 18px;
    height: 18px;
  }

  .news-page-card__date-text {
    font-size: 15px;
    line-height: 20px;
  }

  .news-pagination {
    gap: 12px;
    margin-top: 24px;
  }

  .news-pagination__summary {
    font-size: 14px;
    line-height: 19px;
  }

  .news-pagination__list {
    gap: 6px;
  }

  .news-pagination__link {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
}
