/* News section */
.news-section {
  background: #F8FCFE;
}

.news-container {
  width: min(1400px, 90vw);
  margin: 0 auto;
  padding: 77px 0;
}

.news-header {
  text-align: center;
}

.news-title {
  font-weight: 600;
  font-size: 32px;
  color: #292929;
}

.news-underline {
  margin-top: 31px;
  position: relative;
  height: 2px;
  background: #E9ECFB;
  width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.news-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 63px;
  height: 2px;
  background: #0C4CD1;
  transform: translateX(-50%);
}

.news-body {
  margin-top: 62px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #cfd8e3;
  overflow: hidden;
}

.card-body {
  padding: 16px;
  font-size: 14px;
  position: relative;
}

.card-text {
  height: 42px;
  line-height: 21px;
  font-size: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-date {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
}

.card-date .year {
  font-size: 13px;
  line-height: 1;
  color: #8e8e8e;
  margin-bottom: 4px;
}

.card-date .date {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #0C4CD1;
}

.card-hover {
  position: absolute;
  inset: 0;
  background: rgba(12, 76, 209, 0.95);
  color: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.card-hover h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.card-hover p {
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.card-hover-link {
  margin-top: auto;
  align-self: flex-end;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
}

.card-hover-link:hover,
.card-hover-link:focus-visible {
  color: #fff;
  text-decoration: none;
}

.info-card:hover .card-hover,
.info-card:focus-within .card-hover {
  opacity: 1;
  transform: translateY(0);
}

.more-link {
  margin-top: 28px;
  display: block;
  text-align: right;
  color: #0C4CD1;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .news-container {
    padding: 42px 20px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-body {
    padding: 14px;
  }

  .card-date .year {
    font-size: 12px;
  }

  .card-date .date {
    font-size: 28px;
  }

  .card-hover {
    padding: 20px;
  }
}
