.page-news {
  --news-match: var(--c-gold);
  --news-case: #3D7DD8;
  --news-product: var(--c-red);
  --news-data: var(--c-gray);
  overflow-x: hidden;
}

.page-news .news-hero {
  position: relative;
  padding: 148px 0 48px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.14), transparent 380px),
    var(--c-primary);
}

.page-news .news-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-news .news-hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.3;
}

.page-news .news-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 30, 58, 0.97) 0%, rgba(11, 30, 58, 0.78) 55%, rgba(11, 30, 58, 0.4) 100%);
}

.page-news .news-hero-content {
  position: relative;
  z-index: 1;
}

.page-news .news-hero-content .breadcrumb {
  margin-bottom: 18px;
}

.page-news .news-hero-content h1 {
  font-family: var(--font-title);
  font-size: 30px;
  line-height: 1.2;
  color: var(--c-white);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.page-news .news-hero-content p {
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.page-news .featured-head {
  margin-bottom: 28px;
}

.page-news .featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, transparent 42%),
    var(--c-secondary);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease;
}

.page-news .featured-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
}

.page-news .featured-media {
  position: relative;
  overflow: hidden;
  background: var(--c-secondary);
  min-height: 200px;
}

.page-news .featured-media::before {
  content: "";
  display: block;
  padding-bottom: 62%;
}

.page-news .featured-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .featured-flag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-capsule);
  background: var(--c-red);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-news .featured-content {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.page-news .featured-content .tag-label {
  margin: 0;
}

.page-news .featured-content h3 {
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.3;
  color: var(--c-white);
  margin: 0;
}

.page-news .featured-content p {
  color: var(--c-gray);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.page-news .featured-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.page-news .featured-meta span {
  color: var(--c-gold-pale);
  font-family: var(--font-num);
  font-size: 13px;
}

.page-news .section-news-list {
  background: linear-gradient(180deg, transparent, rgba(11, 30, 58, 0.55) 12%, rgba(11, 30, 58, 0.55) 88%, transparent);
  padding-bottom: 96px;
}

.page-news .news-archive {
  position: relative;
}

.page-news .filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.page-news .news-sidebar {
  background: var(--c-secondary);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 24px;
  order: 2;
}

.page-news .sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news .sidebar-cats {
  display: none;
}

.page-news .news-sidebar h3 {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--c-white);
  margin: 0 0 16px;
}

.page-news .filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-news .filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-capsule);
  border: 1px solid var(--c-border);
  background: var(--c-primary);
  color: var(--c-gray);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.page-news .filter-chip:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
}

.page-news .sidebar-note {
  border-top: 1px solid var(--c-border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-news .sidebar-note p {
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.page-news .sidebar-note .btn {
  align-self: flex-start;
  padding: 10px 22px;
  font-size: 14px;
}

.page-news .news-main {
  min-width: 0;
  order: 1;
}

.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.page-news .news-archive:has(.filter-input[id="filter-all"]:checked) .filter-chip[for="filter-all"],
.page-news .news-archive:has(.filter-input[id="filter-match"]:checked) .filter-chip[for="filter-match"],
.page-news .news-archive:has(.filter-input[id="filter-case"]:checked) .filter-chip[for="filter-case"],
.page-news .news-archive:has(.filter-input[id="filter-product"]:checked) .filter-chip[for="filter-product"],
.page-news .news-archive:has(.filter-input[id="filter-data"]:checked) .filter-chip[for="filter-data"] {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-primary);
  font-weight: 700;
}

.page-news .article-masonry {
  columns: 1;
  column-gap: 0;
}

.page-news .article-card {
  --card-color: var(--c-border);
  break-inside: avoid;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  background: var(--c-secondary);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--card-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-news .article-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-color);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.page-news .article-card[data-category="match"] {
  --card-color: var(--news-match);
}

.page-news .article-card[data-category="case"] {
  --card-color: var(--news-case);
}

.page-news .article-card[data-category="product"] {
  --card-color: var(--news-product);
}

.page-news .article-card[data-category="data"] {
  --card-color: var(--news-data);
}

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

.page-news .article-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.page-news .article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-news .cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-capsule);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.page-news .cat-match {
  background: rgba(212, 175, 55, 0.16);
  color: var(--c-gold);
}

.page-news .cat-case {
  background: rgba(61, 125, 216, 0.16);
  color: #7FB6F0;
}

.page-news .cat-product {
  background: rgba(230, 57, 70, 0.16);
  color: #FF7A85;
}

.page-news .cat-data {
  background: rgba(176, 196, 222, 0.16);
  color: var(--c-gray);
}

.page-news .read-min {
  color: var(--c-gray);
  font-family: var(--font-num);
  font-size: 12px;
}

.page-news .article-body h3 {
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 1.4;
  color: var(--c-white);
  margin: 0;
}

.page-news .article-body p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

.page-news .article-card:hover .article-body p,
.page-news .article-card:focus-within .article-body p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.page-news .article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-gold);
  font-family: var(--font-body);
  font-size: 14px;
  text-decoration: none;
  font-weight: 700;
  margin-top: auto;
  transition: color 0.2s ease;
}

.page-news .article-link:hover {
  color: var(--c-gold-bright);
}

.page-news .article-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.page-news .article-link:hover::after {
  transform: translateX(3px);
}

.page-news .filter-input[id="filter-match"]:checked~.news-layout .article-card:not([data-category="match"]),
.page-news .filter-input[id="filter-case"]:checked~.news-layout .article-card:not([data-category="case"]),
.page-news .filter-input[id="filter-product"]:checked~.news-layout .article-card:not([data-category="product"]),
.page-news .filter-input[id="filter-data"]:checked~.news-layout .article-card:not([data-category="data"]) {
  display: none;
}

.page-news .news-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
}

.page-news .news-stats .stat-block {
  background: var(--c-primary);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-news .news-stats .stat-value {
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1.1;
}

.page-news .news-stats .stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gray);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .page-news .news-hero {
    padding: 180px 0 60px;
  }

  .page-news .news-hero-content h1 {
    font-size: 46px;
  }

  .page-news .news-hero-content p {
    font-size: 17px;
  }

  .page-news .featured-card {
    grid-template-columns: 380px 1fr;
  }

  .page-news .featured-media {
    min-height: 100%;
  }

  .page-news .featured-content {
    padding: 36px 32px;
  }

  .page-news .featured-content h3 {
    font-size: 27px;
  }

  .page-news .article-masonry {
    columns: 2;
    column-gap: 24px;
  }

  .page-news .article-card {
    margin-bottom: 24px;
  }

  .page-news .news-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-news .news-stats .stat-block {
    padding: 36px 16px;
  }
}

@media (min-width: 1024px) {
  .page-news .news-layout {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }

  .page-news .news-sidebar {
    order: 1;
    position: sticky;
    top: 110px;
  }

  .page-news .sidebar-cats {
    display: block;
  }

  .page-news .filter-list {
    flex-direction: column;
    align-items: stretch;
  }

  .page-news .filter-list .filter-chip {
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  .page-news .news-main {
    order: 2;
  }

  .page-news .filter-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-news .article-card,
  .page-news .featured-card,
  .page-news .article-link,
  .page-news .filter-chip {
    transition: none;
  }
}
