/* News listing and detail */
.news-card-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.news-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 25, 38, .08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-grid {
  display: block;
}

.news-grid #dle-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-right: 15px;
  margin-left: 15px;
}

.news-grid #dle-content > .news-card-wrap {
  float: none;
  width: auto;
  padding-right: 0;
  padding-left: 0;
}

.news-grid #dle-content > .navigation,
.news-grid #dle-content > .pagination {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .news-card-wrap:nth-child(3n + 1) {
    clear: left;
  }
}

.news-card:hover {
  border-color: #c8daee;
  box-shadow: 0 20px 46px rgba(16, 25, 38, .13);
  transform: translateY(-4px);
}

.news-card__media {
  position: relative;
  display: block;
  height: 0;
  padding-bottom: 62%;
  overflow: hidden;
  background: #edf3f9;
}

.news-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

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

.news-card__date,
.news-detail__date {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  min-height: 62px;
  padding: 7px;
  color: #fff;
  background: linear-gradient(135deg, #126fe3, #0755b8);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(7, 85, 184, .28);
}

.news-card__date strong,
.news-detail__date strong {
  font-size: 25px;
  line-height: 1;
}

.news-card__date span,
.news-detail__date span {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 25px 25px;
}

.news-card__title {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 13px;
  overflow: hidden;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card__title a {
  color: #101926;
}

.news-card__title a:hover,
.news-card__title a:focus {
  color: #126fe3;
}

.news-card__excerpt {
  display: -webkit-box;
  margin-bottom: 22px;
  overflow: hidden;
  color: #627085;
  font-size: 14px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.news-card__excerpt > :last-child {
  margin-bottom: 0;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  color: #126fe3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.news-card__link i {
  transition: transform .2s ease;
}

.news-card__link:hover,
.news-card__link:focus {
  color: #0755b8;
}

.news-card__link:hover i,
.news-card__link:focus i {
  transform: translateX(4px);
}

.news-detail {
  --news-blue: #126fe3;
  --news-ink: #101926;
  --news-muted: #627085;
  float: none;
  padding-right: 15px;
  padding-left: 15px;
}

.news-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.news-detail__main,
.news-detail__aside {
  min-width: 0;
}

.news-detail__article,
.news-detail__latest {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8f3;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 25, 38, .08);
}

.news-detail__hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  background: #edf3f9;
}

.news-detail__hero:after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 12, 22, .04) 34%, rgba(5, 12, 22, .82) 100%);
  content: "";
  pointer-events: none;
}

.news-detail__image {
  display: block;
  width: 100%;
  height: clamp(240px, 24vw, 320px);
  object-fit: cover;
  object-position: center;
}

.news-detail__date {
  top: 22px;
  left: 22px;
  z-index: 3;
  width: 70px;
  min-height: 70px;
}

.news-detail__hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 42px 40px 36px;
}

.news-detail__content {
  padding: 36px 40px 42px;
}

.news-detail__title {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

.news-detail__story {
  color: #334155;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.news-detail__story p,
.news-detail__story ul,
.news-detail__story ol {
  margin-bottom: 20px;
}

.news-detail__story img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.news-detail__story a {
  color: var(--news-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-detail__story blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  color: #30445d;
  background: #f4f8fc;
  border-left: 4px solid var(--news-blue);
}

.news-detail__latest {
  padding: 25px;
}

.news-detail__latest-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3ebf4;
}

.news-detail__latest-mark {
  width: 4px;
  height: 28px;
  background: var(--news-blue);
}

.news-detail__latest-head h2 {
  margin: 0;
  color: var(--news-ink);
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.news-detail__latest-list .post {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 58px;
  margin: 0;
  padding: 0 0 14px;
}

.news-detail__latest-list .post + .post {
  padding-top: 14px;
  border-top: 1px solid #e7eef6;
}

.news-detail__latest-list .post .post-thumb {
  position: relative;
  top: auto;
  left: auto;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf3f9;
}

.news-detail__latest-list .post + .post .post-thumb {
  top: auto;
}

.news-detail__latest-list .post .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.news-detail__latest-list .post:hover .post-thumb img {
  transform: scale(1.06);
}

.news-latest-item__content {
  min-width: 0;
}

.news-detail__latest-list .post h4 {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-detail__latest-list .post h4 a {
  color: var(--news-ink);
}

.news-detail__latest-list .post h4 a:hover,
.news-detail__latest-list .post h4 a:focus {
  color: var(--news-blue);
}

.sidebar-page .news-detail__latest-list .post .post-info {
  display: block;
  margin-top: 7px;
  color: #8491a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .news-grid #dle-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card-wrap:nth-child(2n + 1) {
    clear: left;
  }

  .news-detail__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .news-detail__content {
    padding: 30px;
  }

  .news-detail__hero-content {
    padding: 36px 30px 30px;
  }
}

@media (max-width: 767px) {
  .news-grid #dle-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-card-wrap {
    clear: both;
    float: none;
    max-width: 560px;
    margin-right: 0;
    margin-left: 0;
  }

  .news-card__title {
    min-height: 0;
  }

  .news-detail__layout {
    grid-template-columns: 1fr;
  }

  .news-detail__hero,
  .news-detail__image {
    min-height: 0;
    height: 320px;
  }

  .news-detail__content {
    padding: 27px 24px 30px;
  }

  .news-detail__hero-content {
    padding: 34px 24px 25px;
  }

  .news-detail__aside {
    margin-top: 0;
  }
}

@media (max-width: 479px) {
  .news-card__body {
    padding: 21px;
  }

  .news-detail__hero,
  .news-detail__image {
    height: 240px;
  }

  .news-detail__date {
    top: 14px;
    left: 14px;
    width: 60px;
    min-height: 60px;
  }

  .news-detail__content {
    padding: 24px 20px 27px;
  }

  .news-detail__hero-content {
    padding: 30px 20px 21px;
  }

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

  .news-detail__latest {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-card__image,
  .news-card__link i {
    transition: none;
  }
}
