/* ==========================================================================
   MCMS news pages · list, article detail and shared editorial components
   ========================================================================== */

.page-hero--news {
  min-height: 360px;
  background:
    linear-gradient(100deg, rgba(4, 19, 43, .94) 0%, rgba(5, 28, 62, .78) 52%, rgba(5, 28, 62, .5) 100%),
    url("../img/live/news/news-02.jpg") center 46% / cover no-repeat,
    #071b3d;
}

.page-hero--article {
  min-height: 380px;
  background:
    linear-gradient(100deg, rgba(4, 19, 43, .95) 0%, rgba(5, 28, 62, .84) 56%, rgba(5, 28, 62, .58) 100%),
    url("../img/live/news/news-07.jpg") center 38% / cover no-repeat,
    #071b3d;
}

.page-hero--article h1 {
  max-width: 1000px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.news-page-section {
  padding: 58px 0 86px;
  background: #f6f8fc;
}

.news-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.news-page-head h2 {
  position: relative;
  padding-left: 15px;
  color: #18345e;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.25;
}

.news-page-head h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: .95em;
  background: var(--brand);
  transform: translateY(-50%);
}

.news-page-head p {
  color: #8c98a9;
  font-size: 12.5px;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 24px);
}

.news-category-block { margin-top: 40px; }
.news-category-block:first-of-type { margin-top: 0; }

.news-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5ebf3;
}

.news-category-head h2 {
  position: relative;
  padding-left: 13px;
  color: #18345e;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.35;
}

.news-category-head h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: .95em;
  background: #1b5bd6;
  transform: translateY(-50%);
}

.news-category-head a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7f8fa3;
  font-size: 11.5px;
  transition: color .2s ease;
}

.news-category-head a:hover { color: #1b5bd6; }
.news-category-head .icon { width: 12px; height: 12px; }

.news-page-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6ebf2;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17, 44, 82, .04);
  transition: transform .32s var(--ease), box-shadow .32s ease, border-color .3s ease;
}

.news-page-card:hover {
  border-color: #cbdcf5;
  box-shadow: 0 18px 42px rgba(17, 44, 82, .11);
  transform: translateY(-4px);
}

.news-page-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe8f5;
}

.news-page-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}

.news-page-card:hover .news-page-card__media img { transform: scale(1.045); }

.news-page-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .36);
  border-radius: 99px;
  color: #fff;
  background: rgba(7, 28, 61, .7);
  font-size: 10.5px;
  line-height: 1.5;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.news-page-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 19px 21px 21px;
}

.news-page-card__date {
  color: #9aa6b6;
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.news-page-card__title {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #1d334f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-page-card__desc {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #77879b;
  font-size: 12.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-page-card__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
  color: #1b5bd6;
  font-size: 11.5px;
  font-weight: 600;
}

.news-page-card__more .icon {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

.news-page-card:hover .news-page-card__more .icon { transform: translateX(3px); }

.news-page-empty {
  grid-column: 1 / -1;
  padding: 68px 24px;
  border: 1px dashed #d8e2ef;
  border-radius: 14px;
  color: #8a99ac;
  background: #fff;
  text-align: center;
  font-size: 14px;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.news-pagination a,
.news-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe7f1;
  border-radius: 9px;
  color: #56677d;
  background: #fff;
  font-size: 12px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.news-pagination a:hover {
  border-color: #b7cdf1;
  color: #1b5bd6;
  background: #f4f8ff;
}

.news-pagination .is-current {
  border-color: #1b5bd6;
  color: #fff;
  background: #1b5bd6;
}

.news-pagination .is-disabled {
  color: #b7c2d0;
  cursor: default;
  background: #f8fafc;
}

.news-pagination__info {
  min-width: 0;
  padding: 0 8px;
  border: 0;
  color: #8a99ac;
  background: transparent;
  font-family: var(--font-en);
  font-size: 11.5px;
}

/* --------------------------------------------------------------------------
   Article detail
   -------------------------------------------------------------------------- */

.article-section {
  padding: 50px 0 88px;
  background: #f6f8fc;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
}

.article-card {
  min-width: 0;
  padding: clamp(24px, 3.1vw, 48px);
  border: 1px solid #e5ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(17, 44, 82, .045);
}

.article-cover {
  margin: calc(clamp(24px, 3.1vw, 48px) * -1) calc(clamp(24px, 3.1vw, 48px) * -1) 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #dfe8f5;
}

.article-cover img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 18px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #dfe5ee;
  color: #94a1b1;
  font-size: 12px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.article-meta .icon {
  width: 13px;
  height: 13px;
  color: #9eacbd;
}

.article-lead {
  margin-top: 23px;
  padding: 16px 19px;
  border-left: 3px solid #a9c4f7;
  color: #5c6e84;
  background: #f6f9ff;
  font-size: 14px;
  line-height: 1.9;
}

.article-body {
  color: #3e4f64;
  font-size: 15px;
  line-height: 2.05;
  overflow-wrap: anywhere;
}

.article-body > :first-child { margin-top: 26px; }
.article-body p { margin: 17px 0; }
.article-body h2,
.article-body h3 {
  position: relative;
  margin: 32px 0 13px;
  padding-left: 13px;
  color: #18345e;
  font-size: 20px;
  line-height: 1.55;
}
.article-body h2::before,
.article-body h3::before {
  content: "";
  position: absolute;
  top: .42em;
  left: 0;
  width: 3px;
  height: 1.05em;
  background: #1b5bd6;
}
.article-body img {
  height: auto;
  margin: 20px auto;
  border-radius: 8px;
}
.article-body ul,
.article-body ol {
  margin: 14px 0;
  padding-left: 1.6em;
  list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin: 6px 0; }
.article-body blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 3px solid #d7b44a;
  color: #66758a;
  background: #fbf8ee;
}
.article-body a {
  color: #1b5bd6;
  border-bottom: 1px solid rgba(27, 91, 214, .25);
}
.article-body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: 13px;
}
.article-body th,
.article-body td {
  padding: 9px 11px;
  border: 1px solid #e0e7f0;
}

.article-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid #edf1f6;
}

.article-pager a,
.article-pager span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #e5ebf3;
  border-radius: 9px;
  color: #43556b;
  background: #fbfcfe;
  font-size: 12.5px;
  line-height: 1.55;
  transition: border-color .2s ease, background .2s ease;
}

.article-pager a:hover {
  border-color: #bdd1f1;
  background: #f5f9ff;
}

.article-pager small {
  color: #9aa7b7;
  font-size: 10.5px;
}

.article-pager b {
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.article-pager .article-pager__next {
  text-align: right;
  align-items: flex-end;
}

.article-aside {
  position: sticky;
  top: 102px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.article-side-card {
  padding: 22px 22px 23px;
  border: 1px solid #e5ebf2;
  border-radius: 13px;
  background: #fff;
}

.article-side-card h3 {
  position: relative;
  padding-left: 12px;
  color: #18345e;
  font-size: 16px;
  line-height: 1.4;
}

.article-side-card h3::before {
  content: "";
  position: absolute;
  top: .35em;
  left: 0;
  width: 3px;
  height: 1em;
  background: #1b5bd6;
}

.article-related {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.article-related a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px dashed #e4e9f1;
  color: #41536a;
  font-size: 12.5px;
  line-height: 1.65;
}

.article-related a:last-child { border-bottom: 0; }
.article-related a:hover { color: #1b5bd6; }

.article-related time {
  color: #9aa7b7;
  font-family: var(--font-en);
  font-size: 10px;
}

.article-side-contact {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #0a2b5c, #123f86);
}

.article-side-contact::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -62px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.article-side-contact small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .6);
  font-size: 10.5px;
  letter-spacing: .1em;
}

.article-side-contact b {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 7px;
  font-family: var(--font-en);
  font-size: 21px;
  line-height: 1.3;
}

.article-side-contact a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  color: #ffe27a;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .article-shell { grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 980px) {
  .news-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-hero--news,
  .page-hero--article { min-height: 300px; }
  .news-page-section { padding: 40px 0 58px; }
  .news-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .article-section { padding: 32px 0 58px; }
  .article-card { border-radius: 11px; }
  .article-cover { border-radius: 11px 11px 0 0; }
  .article-body { font-size: 14px; line-height: 1.95; }
  .article-aside { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .news-page-grid { grid-template-columns: 1fr; gap: 13px; }
  .news-page-card { border-radius: 11px; }
  .news-page-card__body { padding: 16px 17px 17px; }
  .news-page-card__title { font-size: 15.5px; }
  .news-page-card__desc { font-size: 12px; }
  .news-pagination a,
  .news-pagination span { min-width: 34px; height: 34px; padding: 0 11px; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager .article-pager__next { text-align: left; align-items: flex-start; }
}
