/* ============================
   News List Card Styles
   参考 seraphim-energy.cn/news
   ============================ */

/* News Grid: 3 columns */
.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card {
  width: calc(33.333% - 16px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
  flex: 0 0 auto;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Card Image */
.news-card__img {
  width: 100%;
  height: 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.news-card__img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__img img {
  transform: scale(1.05);
}

/* Card Body */
.news-card__body {
  padding: 20px 22px 24px;
}

/* Date */
.news-card__date {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card__date i {
  font-size: 14px;
  color: #bbb;
}

/* Title */
.news-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s;
}

.news-card__title a:hover {
  color: #d70000;
}

/* Description */
.news-card__desc {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: button + dot */
.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.news-card__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: #f0f0f0;
  color: #666;
  font-size: 13px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.news-card__btn:hover {
  background: #d70000;
  color: #fff;
}

.news-card__dot {
  width: 8px;
  height: 8px;
  background: #d70000;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .news-card {
    width: calc(50% - 12px);
  }
}

@media (max-width: 767px) {
  .news-grid {
    gap: 16px;
  }
  .news-card {
    width: 100%;
  }
  .news-card__body {
    padding: 16px 18px 20px;
  }
}
