/* 首页 - 教育咨讯 */
.news-home {
  background: #f8f9fb;
  padding: 84px 0;
}

.nh-head {
  text-align: center;
  margin-bottom: 50px;
}

.nh-head h2 {
  font-size: 34px;
  font-weight: 700;
  color: #0f1c4d;
  margin: 0 0 10px;
  letter-spacing: -0.5px;
}

.nh-head p {
  font-size: 15px;
  color: #5a6278;
  margin: 0;
}

.nh-grid {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.nh-grid > [class*="col-"] {
  flex: 0 0 auto;
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 768px) {
  .nh-grid > .col-md-6 { width: 50%; }
}

@media (min-width: 992px) {
  .nh-grid > .col-lg-4 { width: 33.333333%; }
}

.nh-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 28, 77, 0.06);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 28, 77, 0.14);
}

.nh-card a {
  text-decoration: none;
  color: inherit;
}

.nh-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e8ebf2;
  height: 190px;
}

.nh-thumb::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #c9a227, #e6c75e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.nh-card:hover .nh-thumb::after {
  transform: scaleX(1);
}

.nh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.nh-card:hover .nh-thumb img {
  transform: scale(1.06);
}

.nh-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nh-date {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8a92a8;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.nh-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f1c4d;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-body h3 a:hover {
  color: #c9a227;
}

.nh-body p {
  font-size: 14px;
  color: #5a6278;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nh-foot {
  text-align: center;
  margin-top: 50px;
}

.nh-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f1c4d;
  text-decoration: none;
  padding: 12px 32px;
  border: 1.5px solid #c9a227;
  border-radius: 30px;
  background: #fff;
  transition: all .25s ease;
}

.nh-more:hover {
  background: #c9a227;
  color: #fff;
}

.nh-more i {
  font-size: 12px;
  transition: transform .25s ease;
}

.nh-more:hover i {
  transform: translateX(4px);
}

@media (max-width: 991px) {
  .news-home {
    padding: 56px 0;
  }

  .nh-head {
    margin-bottom: 34px;
  }

  .nh-head h2 {
    font-size: 28px;
  }

  .nh-foot {
    margin-top: 34px;
  }
}
