.page-news {
  --news-red: #ff4d5a;
  --news-green: #00ffb3;
  --news-purple: #b44dff;
  --news-amber: #ffd166;
  --news-card-bg: rgba(18, 42, 84, 0.55);
  --news-line: rgba(168, 184, 216, 0.18);
  background: linear-gradient(180deg, #0a1e3d 0%, #0d2448 100%);
  color: #e6f0ff;
  overflow-x: hidden;
}

.page-news .container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.page-news .breadcrumb {
  padding-top: 20px;
}

.page-news .breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #a8b8d8;
}

.page-news .breadcrumb a {
  color: #e6f0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .breadcrumb a:hover {
  color: #00ffb3;
}

.page-news .breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(168, 184, 216, 0.5);
}

.page-news .news-hero {
  padding: 56px 0 40px;
  position: relative;
}

.page-news .news-hero::before {
  content: "";
  position: absolute;
  top: 20px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(180, 77, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-news .news-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-news .news-hero__eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00ffb3;
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 0 16px;
}

.page-news .news-hero h1 {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(100deg, #e6f0ff 40%, #00ffb3 70%, #b44dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e6f0ff;
}

.page-news .news-hero__lead {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #a8b8d8;
  max-width: 540px;
}

.page-news .news-hero__visual {
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.page-news .news-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transform: scale(1.02);
}

.page-news .news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 32px 0 80px;
}

.page-news .section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--news-line);
}

.page-news .section-heading__no {
  font-family: 'Oswald', 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #00ffb3;
  opacity: 0.9;
  min-width: 40px;
}

.page-news .section-heading__title {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #e6f0ff;
}

.page-news .section-heading__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #a8b8d8;
  margin: 0;
}

.page-news .category-index {
  margin-bottom: 72px;
  padding-top: 20px;
}

.page-news .category-index__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-news .category-card {
  position: relative;
  display: block;
  text-decoration: none;
  padding: 28px 26px 24px;
  border-radius: 20px;
  background: rgba(18, 42, 84, 0.72);
  border: 1px solid var(--news-line);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}

.page-news .category-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--news-green);
  z-index: -1;
  transition: width 0.3s ease;
}

.page-news .category-card--purple::before {
  background: var(--news-purple);
}

.page-news .category-card--amber::before {
  background: var(--news-amber);
}

.page-news .category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.page-news .category-card:hover::before {
  width: 100%;
  opacity: 0.08;
}

.page-news .category-card__tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: #00ffb3;
  background: rgba(0, 255, 179, 0.08);
  border: 1px solid rgba(0, 255, 179, 0.25);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.page-news .category-card--purple .category-card__tag {
  color: #b44dff;
  border-color: rgba(180, 77, 255, 0.3);
  background: rgba(180, 77, 255, 0.08);
}

.page-news .category-card--amber .category-card__tag {
  color: #ffd166;
  border-color: rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.08);
}

.page-news .category-card__title {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #e6f0ff;
}

.page-news .category-card__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #a8b8d8;
  margin: 0 0 18px;
}

.page-news .category-card__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #00ffb3;
}

.page-news .category-card--purple .category-card__count {
  color: #b44dff;
}

.page-news .category-card--amber .category-card__count {
  color: #ffd166;
}

.page-news .latest-articles {
  scroll-margin-top: 120px;
}

.page-news .article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-news .article-item {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(18, 42, 84, 0.55);
  border-radius: 20px;
  border: 1px solid var(--news-line);
  padding: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.page-news .article-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 255, 179, 0.05) 50%);
  pointer-events: none;
}

.page-news .article-item:hover {
  border-color: rgba(0, 255, 179, 0.35);
  transform: translateX(4px);
}

.page-news .article-item__index {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-family: 'Oswald', 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: rgba(230, 240, 255, 0.15);
  pointer-events: none;
}

.page-news .article-item__thumb {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.page-news .article-item__thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.4s ease;
}

.page-news .article-item:hover .article-item__thumb img {
  transform: scale(1.04);
}

.page-news .article-item__body {
  position: relative;
  z-index: 1;
}

.page-news .article-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.page-news .article-item__meta li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #b44dff;
  background: rgba(180, 77, 255, 0.12);
  border: 1px solid rgba(180, 77, 255, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  letter-spacing: 1px;
}

.page-news .article-item__meta li:first-child {
  color: #00ffb3;
  background: rgba(0, 255, 179, 0.08);
  border-color: rgba(0, 255, 179, 0.25);
}

.page-news .article-item__title {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #e6f0ff;
}

.page-news .article-item__summary {
  font-size: 14px;
  line-height: 1.7;
  color: #a8b8d8;
  margin: 0 0 16px;
}

.page-news .article-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  font-size: 13px;
  color: #00ffb3;
  text-decoration: none;
  letter-spacing: 1px;
  transition: gap 0.3s ease;
}

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

.page-news .article-item__link:hover {
  gap: 12px;
  color: #b44dff;
}

.page-news .news-layout__side {
  min-width: 0;
}

.page-news .side-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 140px;
}

.page-news .side-rail__block {
  background: rgba(18, 42, 84, 0.5);
  border: 1px solid var(--news-line);
  border-radius: 20px;
  padding: 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
  scroll-margin-top: 120px;
}

.page-news .side-rail__block--tint {
  background: rgba(245, 247, 251, 0.06);
  border-left: 3px solid #00ffb3;
}

.page-news .side-rail__title {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #e6f0ff;
  letter-spacing: 0.5px;
}

.page-news .side-rail__block--tint .side-rail__title {
  color: #00ffb3;
}

.page-news .side-rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-news .side-rail__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(168, 184, 216, 0.1);
}

.page-news .side-rail__list li:last-child {
  border-bottom: none;
}

.page-news .side-rail__list a {
  font-size: 14px;
  color: #e6f0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news .side-rail__list a:hover {
  color: #00ffb3;
}

.page-news .side-rail__score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #b44dff;
  min-width: 24px;
  display: inline-block;
}

.page-news .side-rail__text {
  font-size: 14px;
  line-height: 1.7;
  color: #a8b8d8;
  margin: 0 0 14px;
}

.page-news .side-rail__meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #ffd166;
  margin: 0 0 16px;
  letter-spacing: 0.5px;
}

.page-news .side-rail__link {
  width: 100%;
  justify-content: center;
}

.page-news .side-rail__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-news .side-rail__actions .btn {
  width: 100%;
  justify-content: center;
}

.page-news .masthead-band {
  position: relative;
  padding: 56px 0;
  background: linear-gradient(90deg, rgba(0, 255, 179, 0.08) 0%, rgba(180, 77, 255, 0.08) 100%);
  border-top: 1px solid rgba(168, 184, 216, 0.14);
  border-bottom: 1px solid rgba(168, 184, 216, 0.14);
}

.page-news .masthead-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, transparent 0%, transparent 24px, rgba(255, 255, 255, 0.015) 24px, rgba(255, 255, 255, 0.015) 25px);
  pointer-events: none;
}

.page-news .masthead-band__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-news .masthead-band__badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 3px;
  color: #e6f0ff;
  border: 1px solid rgba(230, 240, 255, 0.3);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 18px;
}

.page-news .masthead-band__title {
  font-family: 'Oswald', 'Noto Sans SC', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  margin: 0 0 12px;
  color: #00ffb3;
}

.page-news .masthead-band__text {
  font-size: 14px;
  line-height: 1.7;
  color: #a8b8d8;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .page-news .category-index__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-news .article-item {
    grid-template-columns: 180px 1fr;
    column-gap: 20px;
    padding: 20px;
  }

  .page-news .article-item__thumb {
    margin-bottom: 0;
  }

  .page-news .article-item__index {
    top: 20px;
    left: 20px;
    font-size: 36px;
  }

  .page-news .side-rail__actions {
    flex-direction: row;
  }
}

@media (min-width: 960px) {
  .page-news .news-hero {
    padding: 72px 0 56px;
  }

  .page-news .news-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-news .news-layout {
    grid-template-columns: 1fr 300px;
    gap: 56px;
  }

  .page-news .article-list {
    gap: 28px;
  }

  .page-news .article-item {
    grid-template-columns: 240px 1fr;
    column-gap: 28px;
  }

  .page-news .article-item__title {
    font-size: 21px;
  }

  .page-news .masthead-band {
    padding: 72px 0;
  }
}

@media (min-width: 1200px) {
  .page-news .container {
    width: calc(100% - 48px);
  }
}
