.page-news {
  --news-bg: #F7F9FC;
  --news-ink: #1D2E3C;
  --news-night: #0A1128;
  --news-green: #00E68A;
  --news-orange: #FF9E1C;
  --news-line: #E0E7EF;
  --news-slate: #6B7A90;
  background: var(--news-bg);
  color: var(--news-ink);
}

.page-news .container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.page-news .skip-link,
.page-news a:focus-visible,
.page-news button:focus-visible {
  outline: 3px solid var(--news-orange);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.news-hero {
  background: var(--news-night);
  color: #E9F2F7;
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  margin-top: calc(var(--header-height, 76px) * -1);
  padding-top: calc(76px + clamp(32px, 5vw, 64px));
}

.news-hero__inner {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.news-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: #A6B3C9;
  margin-bottom: 20px;
}

.news-hero .breadcrumb a {
  color: #A6B3C9;
  text-decoration: none;
  transition: color 0.2s var(--ease, ease);
}

.news-hero .breadcrumb a:hover {
  color: var(--news-green);
}

.news-hero .breadcrumb__sep {
  opacity: 0.5;
}

.news-hero .breadcrumb__current {
  color: #E9F2F7;
}

.news-hero .section-label {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label--green {
  color: var(--news-green);
}

.news-hero__title {
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #E9F2F7;
  margin: 0 0 16px;
  max-width: 720px;
}

.news-hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: #A6B3C9;
  max-width: 560px;
  margin: 0 0 24px;
}

.news-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.news-hero__meta-text {
  font-size: 13px;
  color: #A6B3C9;
}

.news-hero__visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #283A5E;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.news-hero__chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}

/* ===== Ticker ===== */
.news-ticker {
  display: flex;
  align-items: stretch;
  background: #10203F;
  border-bottom: 1px solid #283A5E;
}

.news-ticker__label {
  flex-shrink: 0;
  align-self: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--news-green);
  background: #0A1128;
  padding: 12px 20px;
  border-right: 1px solid #283A5E;
  white-space: nowrap;
}

.news-ticker__track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.news-ticker__img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease, ease);
}

.news-ticker:hover .news-ticker__img {
  transform: translateX(-12px);
}

/* ===== Layout ===== */
.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px 0 72px;
}

.news-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-content: start;
}

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

/* ===== Sidebar categories ===== */
.news-cat {
  background: #fff;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(10, 17, 40, 0.04);
}

.news-side__title {
  font-family: var(--font-sans, sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--news-ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-side__title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--news-green);
  border-radius: 2px;
  flex-shrink: 0;
}

.news-cat__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-cat__btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--news-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.22s var(--ease, ease);
  position: relative;
}

.news-cat__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid var(--news-green);
  transform: translateY(-50%) scale(0);
  transition: transform 0.22s var(--ease, ease);
}

.news-cat__btn:hover {
  background: rgba(0, 230, 138, 0.06);
  border-color: rgba(0, 230, 138, 0.2);
}

.news-cat__btn.is-active {
  background: var(--news-night);
  color: #fff;
  border-color: var(--news-night);
  padding-left: 34px;
}

.news-cat__btn.is-active::before {
  transform: translateY(-50%) scale(1);
}

/* ===== Sidebar hot ===== */
.news-hot {
  position: relative;
  background: var(--news-night);
  color: #E9F2F7;
  border-radius: 12px;
  padding: 24px 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(10, 17, 40, 0.18);
}

.news-hot__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

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

.news-hot > * {
  position: relative;
  z-index: 1;
}

.news-hot .news-side__title {
  color: #fff;
}

.news-hot .news-side__title::before {
  background: var(--news-orange);
}

.news-hot__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  counter-reset: hot;
}

.news-hot__item {
  counter-increment: hot;
  padding: 14px 0;
  border-bottom: 1px solid rgba(233, 242, 247, 0.12);
}

.news-hot__item:last-child {
  border-bottom: none;
}

.news-hot__rank {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: var(--news-orange);
  margin-bottom: 6px;
}

.news-hot__link {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #E9F2F7;
  text-decoration: none;
  transition: color 0.2s var(--ease, ease);
}

.news-hot__link:hover {
  color: var(--news-green);
}

.news-hot__metric {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #A6B3C9;
  margin-top: 6px;
}

/* ===== Main list ===== */
.news-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--news-night);
}

.news-main__title {
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--news-ink);
  margin: 0;
}

.news-main__count {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--news-slate);
  background: rgba(10, 17, 40, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
}

.news-tab-panel[hidden] {
  display: none;
}

.news-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--news-line);
}

.news-article:first-child {
  padding-top: 8px;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-article__time {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--news-slate);
}

.news-article__title {
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.news-article__title a {
  color: var(--news-ink);
  text-decoration: none;
  transition: color 0.2s var(--ease, ease);
  background-image: linear-gradient(var(--news-green), var(--news-green));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease, ease), color 0.2s var(--ease, ease);
}

.news-article__title a:hover {
  color: var(--news-night);
  background-size: 100% 2px;
}

.news-article__excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #3d4d60;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-article__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
}

.news-article__stats div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.news-article__stats dt {
  font-size: 12px;
  color: var(--news-slate);
}

.news-article__stats dd {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 700;
  color: var(--news-night);
  margin: 0;
}

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

.news-article__thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--news-line);
  transition: transform 0.35s var(--ease, ease), box-shadow 0.35s var(--ease, ease);
}

.news-article:hover .news-article__thumb img {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(10, 17, 40, 0.1);
}

/* ===== Pagination ===== */
.news-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 24px 0 0;
}

.news-pagination__current {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: var(--news-slate);
}

.page-news .btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--news-night);
  background: transparent;
  border: 1px solid var(--news-night);
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s var(--ease, ease);
}

.page-news .btn--ghost:hover {
  background: var(--news-night);
  color: #fff;
}

.page-news .btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--news-night);
  background: var(--news-green);
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease, ease), box-shadow 0.2s var(--ease, ease);
}

.page-news .btn--primary:hover {
  background: #00c878;
  box-shadow: 0 6px 20px rgba(0, 230, 138, 0.3);
}

/* ===== Subscribe ===== */
.news-subscribe {
  background: var(--news-night);
  color: #E9F2F7;
  padding: 56px 0 64px;
}

.news-subscribe__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.news-subscribe__icon {
  display: flex;
  justify-content: center;
}

.news-subscribe__icon-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #283A5E;
  box-shadow: 0 0 0 6px rgba(0, 230, 138, 0.12);
}

.news-subscribe__title {
  font-family: var(--font-sans, sans-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.news-subscribe__desc {
  font-size: 15px;
  line-height: 1.6;
  color: #A6B3C9;
  margin: 0;
}

.news-subscribe__form {
  width: 100%;
}

.news-subscribe__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #A6B3C9;
  margin-bottom: 8px;
}

.news-subscribe__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-subscribe__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans, sans-serif);
  font-size: 15px;
  color: #E9F2F7;
  background: #10203F;
  border: 1px solid #283A5E;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.2s var(--ease, ease), box-shadow 0.2s var(--ease, ease);
}

.news-subscribe__input::placeholder {
  color: #6d7b93;
}

.news-subscribe__input:focus {
  outline: none;
  border-color: var(--news-green);
  box-shadow: 0 0 0 3px rgba(0, 230, 138, 0.18);
}

.news-subscribe__hint {
  font-size: 12px;
  color: #6d7b93;
  margin: 10px 0 0;
}

/* ===== Related links ===== */
.news-links {
  background: #fff;
  padding: 56px 0 72px;
  border-top: 1px solid var(--news-line);
}

.news-links__title {
  font-family: var(--font-sans, sans-serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--news-ink);
  margin: 0 0 24px;
}

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

.news-links__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--news-bg);
  border: 1px solid var(--news-line);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  transition: all 0.22s var(--ease, ease);
}

.news-links__card:hover {
  border-color: rgba(0, 230, 138, 0.5);
  box-shadow: 0 8px 24px rgba(10, 17, 40, 0.07);
  transform: translateY(-2px);
}

.news-links__card-label {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--news-green);
  background: rgba(0, 230, 138, 0.08);
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 20px;
}

.news-links__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--news-ink);
  line-height: 1.5;
}

/* ===== Tag ===== */
.page-news .tag {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--news-green);
  background: rgba(0, 230, 138, 0.08);
  border: 1px solid rgba(0, 230, 138, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
}

.page-news .tag--live {
  color: #0A1128;
  background: var(--news-green);
  border-color: var(--news-green);
  position: relative;
  padding-left: 22px;
}

.page-news .tag--live::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: #0A1128;
  border-radius: 50%;
  transform: translateY(-50%);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease, ease), transform 0.5s var(--ease, ease);
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .news-hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .news-layout {
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 72px 0 96px;
  }

  .news-side {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .news-article {
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
  }

  .news-subscribe__inner {
    grid-template-columns: 120px 1fr 380px;
    gap: 32px;
  }

  .news-subscribe__row {
    flex-direction: row;
  }

  .news-links__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-article__thumb {
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .page-news {
    overflow-x: clip;
  }

  .news-hero {
    padding-left: 0;
    padding-right: 0;
  }

  .news-hero__inner {
    padding-inline: clamp(20px, 4vw, 56px);
  }

  .news-ticker {
    flex-direction: column;
  }

  .news-ticker__label {
    border-right: none;
    border-bottom: 1px solid #283A5E;
    padding: 10px 16px;
  }

  .news-ticker__img {
    height: 80px;
  }

  .news-layout {
    padding: 32px 0 56px;
  }

  .news-side {
    grid-template-columns: 1fr;
  }

  .news-cat__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .news-cat__btn.is-active {
    padding-left: 14px;
  }

  .news-article__stats {
    gap: 8px 16px;
  }
}
