/* ============================================================
   News Page
   ============================================================ */
.news-page {
  background: var(--bg-alt);
}

/* ===== Category Tabs ===== */
.news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.news-tab {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition: all .3s;
}
.news-tab:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.news-tab.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Featured News ===== */
.news-featured {
  margin-bottom: 56px;
}
.news-featured__link {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px -16px rgba(13, 27, 42, 0.12);
  transition: transform .35s, box-shadow .35s;
}
.news-featured__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(13, 27, 42, 0.18);
}
.news-featured__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.news-featured__link:hover .news-featured__media img {
  transform: scale(1.05);
}
.news-featured__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.news-featured__body {
  padding: 40px 48px 40px 0;
}
.news-featured__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.news-featured__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
  transition: color .3s;
}
.news-featured__link:hover .news-featured__title {
  color: var(--primary);
}
.news-featured__desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.news-featured__more {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: gap .3s;
}
.news-featured__link:hover .news-featured__more {
  letter-spacing: 1px;
}

/* ===== News Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px -16px rgba(13, 27, 42, 0.1);
  transition: transform .35s, box-shadow .35s;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -16px rgba(13, 27, 42, 0.16);
}
.news-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.news-card:hover .news-card__thumb img {
  transform: scale(1.06);
}
.news-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.news-card__body {
  padding: 24px 24px 28px;
}
.news-card__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.news-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color .3s;
}
.news-card:hover .news-card__title {
  color: var(--primary);
}
.news-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Pagination ===== */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.news-page-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all .3s;
}
.news-page-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.news-page-btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.news-page-btn--next {
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .news-featured__link { grid-template-columns: 1fr; gap: 0; }
  .news-featured__body { padding: 32px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .news-tabs { gap: 6px; }
  .news-tab { padding: 8px 16px; font-size: 13px; }
  .news-featured__body { padding: 24px; }
  .news-featured__title { font-size: 22px; }
  .news-grid { grid-template-columns: 1fr; }
}
