.page-news {
  --news-card-radius: 14px;
  --news-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.06);
  --news-card-shadow-hover: 0 4px 10px rgba(15, 23, 42, 0.08), 0 16px 36px rgba(15, 23, 42, 0.12);
  background: #f1f5f9;
  color: #0f172a;
}

/* ===== Hero ===== */
.page-news .news-hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.28) 0%, rgba(23, 43, 107, 0) 58%), #172b6b;
  color: #f8fafc;
}

.page-news .news-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 88% 18%, rgba(59, 130, 246, 0.2) 0, transparent 38px),
    radial-gradient(circle at 76% 68%, rgba(249, 115, 22, 0.14) 0, transparent 72px);
}

.page-news .news-hero__strip {
  position: absolute;
  right: 1.5rem;
  bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  z-index: 1;
}

.page-news .news-hero__strip i {
  display: block;
  width: 8px;
  border-radius: 2px;
}

.page-news .news-hero__strip i:nth-child(1) {
  height: 32px;
  background: #3b82f6;
}

.page-news .news-hero__strip i:nth-child(2) {
  height: 44px;
  background: #f8fafc;
}

.page-news .news-hero__strip i:nth-child(3) {
  height: 24px;
  background: #f97316;
}

.page-news .news-hero__strip i:nth-child(4) {
  height: 16px;
  background: #3b82f6;
}

.page-news .news-hero__strip i:nth-child(5) {
  height: 10px;
  background: rgba(248, 250, 252, 0.72);
}

.page-news .news-hero .breadcrumb__list {
  margin-bottom: 2.25rem;
}

.page-news .news-hero .breadcrumb__link,
.page-news .news-hero .breadcrumb__item {
  color: rgba(248, 250, 252, 0.72);
}

.page-news .news-hero .breadcrumb__link:hover {
  color: #f97316;
}

.page-news .news-hero__inner {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.page-news .news-hero__text .chapter-label {
  color: rgba(248, 250, 252, 0.7);
}

.page-news .news-hero__text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.page-news .news-hero__desc {
  max-width: 46rem;
  margin: 0;
  color: rgba(248, 250, 252, 0.82);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-news .news-hero__aside {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-news .news-hero__status {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.06);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 10px;
}

.page-news .news-hero__status-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.6);
}

.page-news .news-hero__status-value {
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.95rem;
}

/* ===== Filter ===== */
.page-news .news-filter {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 1.25rem 0;
}

.page-news .news-filter__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.page-news .news-filter__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-news .news-filter__btn {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-news .news-filter__btn:hover {
  border-color: #3b82f6;
  color: #1e40af;
  transform: translateY(-1px);
}

.page-news .news-filter__btn.is-active {
  background: #1e40af;
  border-color: #1e40af;
  color: #f8fafc;
}

.page-news .news-filter__btn.is-active:hover {
  background: #172b6b;
  border-color: #172b6b;
  color: #f8fafc;
}

.page-news .news-filter__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #475569;
  border-left: 2px solid #f97316;
  padding-left: 1rem;
  margin-left: auto;
}

/* ===== List head ===== */
.page-news .news-list {
  padding: 3rem 0 5rem;
}

.page-news .news-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.page-news .news-list__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #172b6b;
  letter-spacing: -0.01em;
}

.page-news .news-list__head p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

/* ===== Timeline ===== */
.page-news .news-list__wrap {
  position: relative;
}

.page-news .news-timeline {
  display: none;
}

/* ===== Masonry ===== */
.page-news .news-masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  position: relative;
}

.page-news .news-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--news-card-radius);
  overflow: hidden;
  box-shadow: var(--news-card-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-news .news-card:hover {
  box-shadow: var(--news-card-shadow-hover);
  transform: translateY(-3px);
}

.page-news .news-card__media {
  flex-shrink: 0;
}

.page-news .news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .news-card__media.media--16x9 img {
  aspect-ratio: 16 / 9;
}

.page-news .news-card__media.media--4x3 img {
  aspect-ratio: 4 / 3;
}

.page-news .news-card__media.media--3x2 img {
  aspect-ratio: 3 / 2;
}

.page-news .news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  flex: 1;
}

.page-news .news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-news .news-card__tags .tag {
  font-size: 0.75rem;
}

.page-news .news-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
}

.page-news .news-card__desc {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-news .news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #64748b;
}

.page-news .news-card__link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.page-news .news-card__link:hover {
  color: #f97316;
}

/* ===== Feature card ===== */
.page-news .news-card--feature {
  background: #172b6b;
  border-color: #172b6b;
  color: #f8fafc;
}

.page-news .news-card--feature .news-card__media {
  flex-shrink: 0;
}

.page-news .news-card--feature .news-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.75rem;
}

.page-news .news-card--feature .news-card__title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: #f8fafc;
}

.page-news .news-card--feature .news-card__desc {
  color: rgba(248, 250, 252, 0.8);
}

.page-news .news-card--feature .news-card__meta {
  border-top-color: rgba(248, 250, 252, 0.15);
  color: rgba(248, 250, 252, 0.62);
}

.page-news .news-card--feature .news-card__link {
  color: #f97316;
}

.page-news .news-card--feature .news-card__link:hover {
  color: #f8fafc;
}

/* ===== Entry animation ===== */
@keyframes page-news-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-news .news-card {
    animation: page-news-rise 0.5s ease-out both;
  }

  .page-news .news-card:nth-child(2) {
    animation-delay: 0.05s;
  }

  .page-news .news-card:nth-child(3) {
    animation-delay: 0.1s;
  }

  .page-news .news-card:nth-child(4) {
    animation-delay: 0.15s;
  }

  .page-news .news-card:nth-child(5) {
    animation-delay: 0.2s;
  }

  .page-news .news-card:nth-child(6) {
    animation-delay: 0.25s;
  }

  .page-news .news-card:nth-child(7) {
    animation-delay: 0.3s;
  }

  .page-news .news-card:nth-child(8) {
    animation-delay: 0.35s;
  }

  .page-news .news-card:nth-child(9) {
    animation-delay: 0.4s;
  }

  .page-news .news-card:nth-child(10) {
    animation-delay: 0.45s;
  }

  .page-news .news-card:nth-child(11) {
    animation-delay: 0.5s;
  }
}

/* ===== Tablet & up ===== */
@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 3rem 0 4.5rem;
  }

  .page-news .news-hero__inner {
    grid-template-columns: 1fr minmax(260px, 320px);
    align-items: end;
    gap: 2.5rem;
  }

  .page-news .news-hero__aside {
    justify-content: flex-end;
  }

  .page-news .news-filter__bar {
    gap: 0.6rem;
  }

  .page-news .news-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
  }

  .page-news .news-card--feature {
    grid-column: 1 / -1;
  }

  .page-news .news-card--feature .news-card__body {
    padding: 2rem;
  }

  .page-news .news-timeline {
    display: block;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
  }

  .page-news .news-timeline__line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: repeating-linear-gradient(to bottom, rgba(59, 130, 246, 0.7) 0 6px, transparent 6px 14px);
    opacity: 0.3;
  }

  .page-news .news-timeline__dot {
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border: 2px solid #f8fafc;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  }

  .page-news .news-timeline__dot--1 {
    top: 12%;
  }

  .page-news .news-timeline__dot--2 {
    top: 50%;
  }

  .page-news .news-timeline__dot--3 {
    top: 86%;
  }
}

/* ===== Desktop & up ===== */
@media (min-width: 1024px) {
  .page-news .news-hero__strip {
    right: 3rem;
    bottom: 2.25rem;
  }

  .page-news .news-list {
    padding-top: 4rem;
  }

  .page-news .news-card--feature {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
  }

  .page-news .news-card--feature .news-card__media {
    height: 100%;
  }

  .page-news .news-card--feature .news-card__body {
    padding: 2.25rem;
  }
}
