/* Homepage news — scoped to .news_bg / .site-news */
.site-news.news_bg {
  --nw-navy: #0f2d6b;
  --nw-blue: #153f8f;
  --nw-deep: #093480;
  --nw-ink: #1a2332;
  --nw-muted: #6b7a90;
  --nw-line: rgba(21, 63, 143, 0.12);
  margin-top: 0;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(21, 63, 143, 0.06), transparent 55%),
    linear-gradient(180deg, #eef2f8 0%, #f7f9fc 55%, #ffffff 100%);
  font-family: "Barlow", "Segoe UI", sans-serif;
}

.site-news.news_bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--nw-blue) 30%, #4a7fd4 70%, transparent);
  pointer-events: none;
}

/* —— Head —— */
.site-news__head.news_head {
  margin: 0 auto 32px !important;
  text-align: center;
  max-width: 640px;
}

.site-news__head.news_head h2 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--nw-ink);
  text-transform: none;
}

.site-news__desc,
.site-news__head.news_head p.site-news__desc {
  margin: 10px 0 0 !important;
  font-size: 15px !important;
  line-height: 1.55;
  color: var(--nw-muted) !important;
}

/* —— Grid —— */
.site-news__list.news_list {
  display: flex;
  flex-wrap: wrap;
  clear: both;
  margin: 0 -12px;
  padding: 0;
}

.site-news .news_img.site-news__item {
  float: none !important;
  width: 33.333% !important;
  padding: 0 12px !important;
  margin: 0 0 24px !important;
  min-height: 0 !important;
  display: flex;
  box-sizing: border-box;
}

.site-news__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--nw-line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-news__item:hover .site-news__card {
  border-color: rgba(21, 63, 143, 0.28);
  box-shadow: 0 14px 32px rgba(15, 45, 107, 0.12);
  transform: translateY(-4px);
}

.site-news__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8edf5;
  line-height: 0;
}

.site-news__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--nw-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
  z-index: 1;
}

.site-news__item:hover .site-news__media::after {
  transform: scaleX(1);
}

.site-news .news_img img.opacity_img,
.site-news__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  opacity: 1 !important;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.site-news__item:hover .site-news__media img {
  transform: scale(1.05);
  opacity: 1 !important;
}

.site-news__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 18px 20px;
  text-align: left;
}

.site-news__date {
  display: inline-block;
  margin-bottom: 8px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nw-blue);
}

.site-news .news_title.news_etitle {
  text-align: left;
  margin: 0 0 10px;
}

.site-news .news_title a,
.site-news .news_etitle a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: "Barlow", sans-serif;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35;
  color: var(--nw-ink) !important;
  transition: color 0.2s ease;
}

.site-news__item:hover .news_title a {
  color: var(--nw-blue) !important;
}

.site-news .news_desc.news_edesc {
  text-align: left;
  margin: 0 0 16px;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--nw-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.site-news__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nw-blue) !important;
  transition: gap 0.2s ease, color 0.2s ease;
}

.site-news__link:hover {
  color: var(--nw-deep) !important;
  gap: 10px;
  text-decoration: none;
}

.site-news__more {
  text-align: center;
  margin-top: 8px;
}

.site-news__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(180deg, #1a4fa8 0%, var(--nw-blue) 100%);
  border: none;
  border-radius: 3px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.site-news__more a:hover {
  background: var(--nw-deep);
  color: #fff !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.site-news__more a:active {
  transform: scale(0.98);
}

@media screen and (max-width: 991px) {
  .site-news__head.news_head h2 {
    font-size: 34px;
  }

  .site-news .news_title a,
  .site-news .news_etitle a {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 767px) {
  .site-news.news_bg {
    padding: 40px 0;
  }

  .site-news__head.news_head {
    margin-bottom: 24px !important;
  }

  .site-news__head.news_head h2 {
    font-size: 28px;
  }

  .site-news .news_img.site-news__item {
    width: 100% !important;
    margin-bottom: 16px !important;
  }

  .site-news__body {
    padding: 14px 14px 16px;
  }
}
