/* News Center page */

.news-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 240px;
  height: clamp(220px, 26vw, 300px);
  overflow: hidden;
  background: #061029;
}

.news-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 16, 41, 0.78) 0%, rgba(0, 82, 217, 0.28) 100%);
}

.news-hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 48px 0 40px;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.news-hero-content h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
}

.news-hero-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.news-list-section {
  padding: 40px 0 64px;
  background: #f3f5f8;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  display: grid;
  grid-template-columns: 88px 168px 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.news-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.news-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.news-date strong {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
}

.news-date span {
  margin-top: 6px;
  font-size: 13px;
  color: #999;
}

.news-thumb {
  display: block;
  width: 168px;
  height: 105px;
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
  flex-shrink: 0;
}

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

.news-card:hover .news-thumb img {
  transform: scale(1.04);
}

.news-body {
  min-width: 0;
}

.news-body h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.news-body h2 a {
  color: #1a1a1a;
  transition: color 0.2s;
}

.news-body h2 a:hover {
  color: var(--brand);
}

.news-body p {
  margin: 0;
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn,
.page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 14px;
  color: #666;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.page-btn:hover,
.page-num:hover {
  color: var(--brand);
}

.page-num.is-active {
  background: var(--brand-soft, #e8f3ff);
  color: var(--brand);
  font-weight: 600;
}

.page-ellipsis {
  color: #999;
  padding: 0 4px;
}

/* Responsive */

@media (max-width: 900px) {
  .news-card {
    grid-template-columns: 72px 140px 1fr;
    gap: 16px;
    padding: 18px 16px;
  }

  .news-thumb {
    width: 140px;
    height: 88px;
  }

  .news-date strong {
    font-size: 30px;
  }

  .news-body h2 {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .news-list-section {
    padding: 24px 0 48px;
  }

  .news-card {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "date title"
      "thumb thumb"
      "body body";
    gap: 12px 14px;
  }

  .news-date {
    grid-area: date;
  }

  .news-thumb {
    grid-area: thumb;
    width: 100%;
    height: 160px;
  }

  .news-body {
    grid-area: body;
  }

  .news-body h2 {
    grid-area: title;
  }

  /* Put title next to date on mobile via restructuring - use body title only */
  .news-card {
    grid-template-areas:
      "date body"
      "thumb thumb";
  }

  .news-body h2 {
    margin-bottom: 8px;
  }
}
