/* ==========================================================
   ALASH — БАСТЫ БЕТТЕГІ ЖАҢАЛЫҚТАР

   Құрылымы:
   1. Сол жақта ең соңғы негізгі жаңалық
   2. Оның астында үш маңызды жаңалық
   3. Оң жақта жаңалық тақырыптарының тізімі
   ========================================================== */


/* Жалпы жаңалықтар бөлімі */

.heritage-site .heritage-content-wide {
  grid-template-columns: minmax(0, 1fr);
}

.heritage-site .portal-news {
  min-width: 0;
  padding: 30px 0 46px;
}


/* Тақырыпты экраннан жасыру */

.heritage-site .portal-news-visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);

  white-space: nowrap;
  border: 0;
}


/* Сілтемелер */

.heritage-site .portal-news a:hover {
  color: #947445;
}

.heritage-site .portal-news a:focus-visible {
  outline: 2px solid #315a83;
  outline-offset: 4px;
}


/* ==========================================================
   НЕГІЗГІ ЕКІ БАҒАН
   ========================================================== */

.heritage-site .portal-news-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 3.25fr)
    minmax(250px, 1fr);

  align-items: start;
  gap: 20px;
}

.heritage-site .portal-news-main,
.heritage-site .portal-news-card {
  min-width: 0;
}


/* ==========================================================
   ЖАҢАЛЫҚ КАРТОЧКАСЫ
   ========================================================== */

.heritage-site .portal-news-card {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
}

.heritage-site .portal-news-card a {
  text-decoration: none;
}

.heritage-site .portal-news-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.heritage-site .portal-news-card h3 a {
  color: inherit;
}


/* ==========================================================
   НЕГІЗГІ СОҢҒЫ ЖАҢАЛЫҚ
   ========================================================== */

.heritage-site .portal-news-lead {
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, 1fr);

  align-items: start;
  gap: 20px;
}


/* Жаңалық суреті */

.heritage-site .portal-news-image {
  display: grid;
  place-items: center;

  width: 100%;
  aspect-ratio: 1.9 / 1;

  overflow: hidden;

  color: #a1885c;
  background: #f1f3f4;
}

.heritage-site .portal-news-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 250ms ease;
}

.heritage-site .portal-news-image:hover img {
  transform: scale(1.025);
}

.heritage-site .portal-news-image > svg {
  width: 42px;
  height: 42px;
}


/* Логотип салынған сурет */

.heritage-site .portal-news-image--identity {
  background: #faf9f6;
}

.heritage-site .portal-news-image--identity img {
  box-sizing: border-box;
  padding: 16px;

  object-fit: contain;
}


/* Негізгі жаңалық мәтіні */

.heritage-site .portal-news-copy {
  min-width: 0;
}

.heritage-site .portal-news-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;
  margin-bottom: 7px;

  color: #8a949d;

  font-size: 9px;
  line-height: 1.45;
}

.heritage-site .portal-news-meta > span {
  color: #947445;
  font-weight: 600;
}

.heritage-site .portal-news-meta time {
  font-variant-numeric: tabular-nums;
}


/* Негізгі жаңалық тақырыбы */

.heritage-site .portal-news-lead h3 {
  color: #102f4e;

  font-size: clamp(23px, 2.1vw, 32px);
  font-weight: 780;
  line-height: 1.16;
}

.heritage-site .portal-news-lead h3 a {
  color: inherit;
}

.heritage-site .portal-news-lead h3 a:hover {
  color: #947445;
}


/* Негізгі жаңалық сипаттамасы */

.heritage-site .portal-news-summary {
  display: -webkit-box;

  margin: 12px 0;

  overflow: hidden;

  color: #697684;

  font-size: 13px;
  line-height: 1.65;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}


/* Толығырақ оқу сілтемесі */

.heritage-site .portal-news-read {
  display: inline-flex;
  align-items: center;

  gap: 12px;
  padding: 5px 0;

  color: #315a83;

  font-size: 12px;
  font-weight: 600;

  text-decoration: none;
}

.heritage-site .portal-news-read:hover {
  color: #947445;
}


/* ==========================================================
   ҮШ МАҢЫЗДЫ ЖАҢАЛЫҚ
   ========================================================== */

.heritage-site .portal-news-highlights {
  margin-top: 22px;
}


/* Маңызды және жаңалықтар тақырыптары */

.heritage-site .portal-news-section-title {
  margin: 0 0 10px;
  padding-bottom: 7px;

  border-bottom: 1px solid #cfd7df;

  color: #102f4e;

  font-size: 17px;
  font-weight: 780;
  line-height: 1.25;

  letter-spacing: -0.01em;
  text-transform: uppercase;
}


/* Үш карточка орналасуы */

.heritage-site .portal-news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 16px;
}


/* Маңызды карточкалардың мәтіні */

.heritage-site .portal-news-cards .portal-news-copy {
  display: flex;
  flex-direction: column;

  padding-top: 11px;
}

.heritage-site .portal-news-cards h3 {
  color: #163553;

  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.heritage-site .portal-news-cards h3 a {
  color: inherit;
}

.heritage-site .portal-news-cards h3 a:hover {
  color: #947445;
}


/* Маңызды карточкада күн тақырыптан кейін тұрады */

.heritage-site .portal-news-cards .portal-news-meta {
  order: 1;

  margin: 10px 0 0;
}


/* Карточкада "Жаңалықтар" жазуын жасыру */

.heritage-site .portal-news-cards .portal-news-meta > span {
  display: none;
}


/* Шағын карточкада сипаттама мен батырманы жасыру */

.heritage-site .portal-news-cards .portal-news-summary,
.heritage-site .portal-news-cards .portal-news-read {
  display: none;
}


/* ==========================================================
   ОҢ ЖАҚТАҒЫ ЖАҢАЛЫҚТАР ТІЗІМІ
   ========================================================== */

.heritage-site .portal-news-latest {
  min-width: 0;
  padding-left: 16px;

  border-left: 1px solid #d7dde3;
}

.heritage-site .portal-news-feed {
  padding: 0;
  margin: 0;

  list-style: none;
}


/* Тізімдегі бір жаңалық */

.heritage-site .portal-news-feed li {
  padding: 12px 0;
  margin: 0;

  border-bottom: 1px solid #dce2e8;
}

.heritage-site .portal-news-feed li:first-child {
  padding-top: 0;
}


/* Жаңалық күні */

.heritage-site .portal-news-feed time {
  display: block;

  margin-bottom: 5px;

  color: #8a949d;

  font-size: 9px;
  line-height: 1.4;

  font-variant-numeric: tabular-nums;
}


/* Тізімдегі тақырып */

.heritage-site .portal-news-feed li > a {
  display: block;

  color: #142f49;

  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;

  overflow-wrap: anywhere;

  text-decoration: none;
}

.heritage-site .portal-news-feed li > a:hover {
  color: #947445;
}


/* Барлық жаңалықтар сілтемесі */

.heritage-site .portal-news-all {
  display: inline-flex;
  align-items: center;

  gap: 10px;
  margin-top: 10px;
  padding: 8px 0;

  color: #315a83;

  font-size: 13px;
  font-weight: 600;

  text-decoration: none;
}

.heritage-site .portal-news-all:hover {
  color: #947445;
}


/* ==========================================================
   ЖАҢАЛЫҚ БОЛМАҒАН КЕЗДЕ
   ========================================================== */

.heritage-site .portal-news-grid > .collection-pending {
  grid-column: 1 / -1;

  padding: 28px;

  background: #faf9f6;
}

.heritage-site .portal-news-grid > .collection-pending h3 {
  margin: 0 0 10px;

  font-size: 21px;
}

.heritage-site .portal-news-grid > .collection-pending p {
  margin: 0;

  color: #697684;

  font-size: 13px;
}


/* Бір ғана жаңалық болған жағдайда */

.heritage-site .portal-news-single {
  grid-template-columns: minmax(0, 1fr);
}


/* ==========================================================
   ПЛАНШЕТ
   ========================================================== */

@media (max-width: 1100px) {
  .heritage-site .portal-news-grid {
    grid-template-columns:
      minmax(0, 1fr)
      230px;

    gap: 18px;
  }

  .heritage-site .portal-news-lead {
    grid-template-columns: minmax(0, 1fr);

    gap: 16px;
  }

  .heritage-site .portal-news-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px 18px;
  }
}


/* ==========================================================
   ТЕЛЕФОН
   ========================================================== */

@media (max-width: 700px) {
  .heritage-site .portal-news {
    padding: 18px 0 28px;
  }

  .heritage-site .portal-news-grid {
    grid-template-columns: minmax(0, 1fr);

    gap: 28px;
  }

  .heritage-site .portal-news-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .heritage-site .portal-news-lead h3 {
    font-size: 25px;
  }

  .heritage-site .portal-news-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px 14px;
  }

  .heritage-site .portal-news-cards h3 {
    font-size: 14px;
  }

  .heritage-site .portal-news-latest {
    padding-left: 0;

    border-left: 0;
  }
}


/* ==========================================================
   ӨТЕ КІШКЕНТАЙ ЭКРАН
   ========================================================== */

@media (max-width: 420px) {
  .heritage-site .portal-news-lead h3 {
    font-size: 23px;
  }

  .heritage-site .portal-news-summary {
    font-size: 12px;
  }

  .heritage-site .portal-news-cards {
    grid-template-columns: 1fr;
  }

  .heritage-site .portal-news-cards h3 {
    font-size: 15px;
  }

  .heritage-site .portal-news-feed li > a {
    font-size: 14px;
  }
}


/* ==========================================================
   ҚОЗҒАЛЫСТЫ АЗАЙТУ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .heritage-site .portal-news-image img {
    transition: none;
  }

  .heritage-site .portal-news-image:hover img {
    transform: none;
  }
}