/* Home page: latest news cards (views/pages/home.ejs). Scoped to .home-news. */
.home-news {
  padding: 88px 0;
  background: #f3f8fb;
  color: #2b2e33;
}

.home-news__inner {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.home-news__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-news h2 {
  margin: 0;
  color: #2b2e33;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-news h2 strong {
  color: #009cde;
}

.home-news__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #056f9d;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.home-news__all:hover {
  color: #2b2e33;
}

.home-news__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
}

.home-news__card {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
}

.home-news__media {
  position: relative;
  display: block;
  flex: 1 1 200px;
  min-height: 240px;
  background: #cfe6f1;
}

.home-news__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news__body {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 26px;
}

.home-news__date {
  color: #056f9d;
  font-size: 12px;
  font-weight: 700;
}

.home-news__body h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.home-news__body h3 a {
  color: #2b2e33;
  text-decoration: none;
}

.home-news__body h3 a:hover {
  color: #056f9d;
}

.home-news__body p {
  margin: 0;
  color: #52697a;
  font-size: 14px;
  line-height: 1.6;
}

.home-news__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #056f9d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home-news__more:hover {
  color: #2b2e33;
}

@media (max-width: 575.98px) {
  .home-news {
    padding: 56px 0;
  }

  .home-news__inner {
    width: calc(100% - 32px);
  }

  .home-news__card {
    flex-basis: 100%;
  }

  .home-news__media {
    flex-basis: 100%;
    min-height: 200px;
  }
}

@media (min-width: 992px) {
  .home-news__card {
    max-width: calc(50% - 14px);
  }
}
