/* ==========================================================================
   GLOBAL CRYPTO MARKET FLASH ALERT — MAIN STYLESHEET
   Pure static: no frameworks, no external fonts, no dependencies.
   ========================================================================== */

:root {
  --bg-deep: #07080c;
  --bg-panel: rgba(16, 19, 28, 0.84);
  --bg-card: rgba(22, 26, 38, 0.88);
  --text-main: #f4f6fb;
  --text-muted: #98a2b3;
  --red-alert: #ff3b4e;
  --red-glow: rgba(255, 59, 78, 0.28);
  --amber-warn: #f59e0b;
  --btc-gold: #f7931a;
  --eth-indigo: #627eea;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-alert: rgba(255, 59, 78, 0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* ---- Immersive BTC / ETH backdrop ---- */
.crypto-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(247, 147, 26, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(98, 126, 234, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(255, 59, 78, 0.16) 0%, transparent 55%),
    linear-gradient(180deg, #06070a 0%, #0b0e17 52%, #07080c 100%);
}

.crypto-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 25%, transparent 85%);
}

/* Giant BTC / ETH watermark symbols */
.watermark-btc,
.watermark-eth {
  position: absolute;
  opacity: 0.07;
  filter: blur(0.5px);
  user-select: none;
}

.watermark-btc {
  top: 6%;
  left: -40px;
  width: 420px;
  height: 420px;
  color: var(--btc-gold);
  transform: rotate(-14deg);
}

.watermark-eth {
  top: 14%;
  right: -30px;
  width: 400px;
  height: 400px;
  color: var(--eth-indigo);
  transform: rotate(12deg);
}

#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---- Top breaking ticker bar ---- */
.breaking-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 8, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-alert);
  padding: 10px 20px;
}

.breaking-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.breaking-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}

.pulse-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-alert);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 0 16px var(--red-glow);
  flex-shrink: 0;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.ticker-text {
  color: #ffd6db;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-quick {
  display: flex;
  gap: 18px;
  flex-shrink: 0;
}

.nav-quick a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.nav-quick a:hover {
  color: #fff;
}

/* ---- Main container ---- */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HERO focus section ---- */
.hero-section {
  padding: 44px 0 36px;
}

.hero-alert-box {
  background: linear-gradient(145deg, rgba(28, 14, 20, 0.92) 0%, rgba(14, 18, 29, 0.94) 55%, rgba(18, 22, 38, 0.92) 100%);
  border: 1px solid var(--border-alert);
  border-radius: 20px;
  padding: 38px 36px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 50px rgba(255, 59, 78, 0.14);
  position: relative;
  overflow: hidden;
}

.hero-alert-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--btc-gold), var(--red-alert), var(--eth-indigo));
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.joint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 59, 78, 0.14);
  border: 1px solid rgba(255, 59, 78, 0.45);
  color: #ff8591;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.coin-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.coin-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

.coin-pill.btc {
  color: var(--btc-gold);
  border-color: rgba(247, 147, 26, 0.35);
}

.coin-pill.eth {
  color: #8ea4ff;
  border-color: rgba(98, 126, 234, 0.4);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.16;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-title .highlight-red {
  color: var(--red-alert);
  text-shadow: 0 0 28px rgba(255, 59, 78, 0.35);
}

.hero-title .highlight-gold {
  color: #fbbf24;
}

.hero-summary {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 22px;
  max-width: 680px;
}

/* Eight giants joint-statement matrix */
.giants-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.giants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.giant-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.giant-chip:hover {
  border-color: var(--amber-warn);
  transform: translateY(-2px);
}

.giant-chip strong {
  display: block;
  font-size: 13px;
  color: #f8fafc;
}

.giant-chip span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Interactive Super-AI threat assessment panel */
.ai-threat-panel {
  background: rgba(9, 11, 18, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 22px;
}

.threat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.threat-header h3 {
  font-size: 15px;
  color: #fbbf24;
}

.risk-level {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 59, 78, 0.18);
  color: #ff6b7a;
  border: 1px solid rgba(255, 59, 78, 0.4);
  white-space: nowrap;
}

.threat-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.t-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.t-tab.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--amber-warn);
  color: #fde68a;
}

.threat-detail h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}

.threat-detail p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.threat-meter {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.threat-fill {
  height: 100%;
  width: 88%;
  background: linear-gradient(90deg, #f59e0b, #ff3b4e);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.threat-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
}

/* ---- Market crash & 24h liquidation stats ---- */
.market-crash-section {
  padding: 16px 0 36px;
}

.crash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(12px);
  transition: transform 0.25s, border-color 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.stat-card.danger {
  border-color: rgba(255, 59, 78, 0.38);
  background: linear-gradient(160deg, rgba(34, 15, 21, 0.88), rgba(18, 22, 34, 0.9));
}

.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.drop-tag {
  color: #ff6b7a;
  background: rgba(255, 59, 78, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.liq-bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  background: #1e293b;
}

.liq-long {
  width: 84%;
  background: var(--red-alert);
}

.liq-short {
  width: 16%;
  background: #10b981;
}

/* ---- Global news aggregation ---- */
.news-section {
  padding: 20px 0 64px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
}

.section-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(255, 59, 78, 0.16);
  border-color: var(--red-alert);
  color: #fff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s, border-color 0.25s;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.news-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
}

.region-tag {
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 600;
  background: rgba(98, 126, 234, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(98, 126, 234, 0.3);
}

.region-tag.warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.region-tag.crash {
  background: rgba(255, 59, 78, 0.15);
  color: #fda4af;
  border-color: rgba(255, 59, 78, 0.3);
}

.news-time {
  color: var(--text-muted);
  white-space: nowrap;
}

.news-card h3 {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 10px;
  color: #f8fafc;
}

.news-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.news-source {
  font-size: 11px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

/* ---- Footer ---- */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 26px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(6, 7, 10, 0.9);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-grid,
  .crash-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .giants-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-quick {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-alert-box {
    padding: 26px 20px;
  }

  .breaking-inner {
    font-size: 12px;
  }
}

/* ==========================================================================
   TERMINAL HUD · CRT · GLITCH · PULSE UPGRADE LAYER
   Adds a late-night trading-floor / cyber command-center texture.
   ========================================================================== */

/* ---- HUD corner brackets (viewport clamp) ---- */
.hud-frame {
  position: fixed;
  inset: 10px;
  z-index: 950;
  pointer-events: none;
}

.hud-frame i {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 59, 78, 0.55);
  filter: drop-shadow(0 0 6px rgba(255, 59, 78, 0.5));
  opacity: 0.85;
}

.hud-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.hud-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.hud-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.hud-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

/* ---- CRT scanlines + drifting scan band ---- */
.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 949;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

.crt-scanband {
  position: fixed;
  left: 0;
  right: 0;
  top: -160px;
  height: 150px;
  z-index: 948;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 59, 78, 0.05) 55%,
    rgba(255, 59, 78, 0.13) 100%
  );
  animation: scanmove 7s linear infinite;
}

@keyframes scanmove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(100vh + 320px));
  }
}

/* ---- UTC clock inside the breaking bar ---- */
.breaking-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  min-width: 0;
}

.hud-clock {
  font-size: 11px;
  color: #ff8591;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 59, 78, 0.35);
  padding-left: 14px;
}

@media (max-width: 640px) {
  .hud-clock {
    display: none;
  }

  .breaking-right {
    gap: 0;
  }
}

/* ---- Breaking bar : red light sweep ---- */
.breaking-bar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 59, 78, 0.95) 45%,
    transparent 90%
  );
  background-repeat: no-repeat;
  background-size: 60% 100%;
  animation: sweep 3.2s ease-in-out infinite;
}

@keyframes sweep {
  0% {
    background-position: -60% 0;
  }
  100% {
    background-position: 160% 0;
  }
}

/* ---- Angled (clipped) cards: military-command cut ---- */
.hero-alert-box {
  border-radius: 6px;
  clip-path: polygon(
    26px 0,
    100% 0,
    100% calc(100% - 26px),
    calc(100% - 26px) 100%,
    0 100%,
    0 26px
  );
}

.stat-card,
.news-card,
.ai-threat-panel {
  border-radius: 6px;
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}

@media (max-width: 960px) {
  .hero-alert-box {
    clip-path: polygon(
      18px 0,
      100% 0,
      100% calc(100% - 18px),
      calc(100% - 18px) 100%,
      0 100%,
      0 18px
    );
  }
}

/* ---- Hover pulse glow (replaces plain border lift) ---- */
.stat-card,
.news-card {
  will-change: transform;
}

.stat-card:hover,
.news-card:hover {
  border-color: rgba(255, 59, 78, 0.4);
  animation: hoverpulse 1.8s ease-in-out infinite;
}

@keyframes hoverpulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 59, 78, 0.22), 0 0 16px rgba(255, 59, 78, 0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 59, 78, 0.5), 0 0 44px rgba(255, 59, 78, 0.32);
  }
}

/* ---- Threat progress bar: animated diagonal stripes ---- */
.threat-fill {
  background-image: repeating-linear-gradient(
    55deg,
    rgba(255, 255, 255, 0.14) 0 6px,
    transparent 6px 13px
  );
  background-size: 19px 100%;
  animation: stripe 1.1s linear infinite;
}

@keyframes stripe {
  to {
    background-position: 19px 0;
  }
}

/* ---- Glitch titles (steady low-frequency RGB split) ---- */
.glitch-t {
  position: relative;
  display: inline-block;
}

.glitch-t::before,
.glitch-t::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
}

.glitch-t::before {
  color: #ff2d55;
  transform: translate(2px, -1px);
  clip-path: inset(0 0 62% 0);
  animation: g1 4.2s steps(1, end) infinite;
}

.glitch-t::after {
  color: #28c8ff;
  transform: translate(-2px, 1px);
  clip-path: inset(58% 0 0 0);
  animation: g2 4.2s steps(1, end) infinite;
}

@keyframes g1 {
  0%,
  78% {
    clip-path: inset(0 0 62% 0);
    transform: translate(2px, -1px);
  }
  82% {
    clip-path: inset(30% 0 34% 0);
    transform: translate(-2px, 1px);
  }
  88% {
    clip-path: inset(64% 0 8% 0);
    transform: translate(2px, 0);
    opacity: 0;
  }
  94%,
  100% {
    clip-path: inset(0 0 62% 0);
    transform: translate(2px, -1px);
    opacity: 0.85;
  }
}

@keyframes g2 {
  0%,
  78% {
    clip-path: inset(58% 0 0 0);
    transform: translate(-2px, 1px);
  }
  82% {
    clip-path: inset(12% 0 66% 0);
    transform: translate(2px, -1px);
  }
  88% {
    clip-path: inset(30% 0 40% 0);
    transform: translate(-2px, 0);
    opacity: 0;
  }
  94%,
  100% {
    clip-path: inset(58% 0 0 0);
    transform: translate(-2px, 1px);
    opacity: 0.85;
  }
}

/* ---- Live stat values: subtle red-tech glow ---- */
.stat-value {
  text-shadow: 0 0 20px rgba(255, 120, 130, 0.16);
}

.drop-tag {
  text-shadow: 0 0 12px rgba(255, 107, 122, 0.35);
}

/* ---- Watermark float drift ---- */
.watermark-btc {
  animation: floatbtc 9s ease-in-out infinite;
}

.watermark-eth {
  animation: floateth 11s ease-in-out infinite;
}

@keyframes floatbtc {
  0%,
  100% {
    transform: rotate(-14deg) translate(0, 0);
  }
  50% {
    transform: rotate(-10deg) translate(8px, -12px);
  }
}

@keyframes floateth {
  0%,
  100% {
    transform: rotate(12deg) translate(0, 0);
  }
  50% {
    transform: rotate(9deg) translate(-10px, 10px);
  }
}

/* ---- Mega coin pills: gold/indigo energy line ---- */
.coin-pill.btc {
  box-shadow: inset 0 0 0 1px rgba(247, 147, 26, 0.18), 0 0 14px rgba(247, 147, 26, 0.12);
}

.coin-pill.eth {
  box-shadow: inset 0 0 0 1px rgba(98, 126, 234, 0.18), 0 0 14px rgba(98, 126, 234, 0.14);
}

/* ---- Reduce motion for a11y ---- */
@media (prefers-reduced-motion: reduce) {
  .crt-scanband,
  .breaking-bar::after,
  .threat-fill,
  .glitch-t::before,
  .glitch-t::after,
  .watermark-btc,
  .watermark-eth,
  .stat-card:hover,
  .news-card:hover {
    animation: none !important;
  }
}

/* ==========================================================================
   NEWSROOM LAYOUT · HERO MASTER VISUAL
   Puts the AI-event master visual behind the hero card and turns the
   news area into a portal: one featured top story + image cards.
   ========================================================================== */

/* ---- Hero master visual backdrop ---- */
.hero-alert-box {
  background:
    linear-gradient(to left, rgba(9, 11, 18, 0.74) 0%, rgba(11, 13, 21, 0.86) 48%, rgba(10, 12, 20, 0.97) 100%),
    url("/assets/img-hero.jpg") center / cover no-repeat;
}

@media (max-width: 960px) {
  .hero-alert-box {
    background:
      linear-gradient(180deg, rgba(9, 11, 18, 0.82) 0%, rgba(11, 13, 21, 0.94) 100%),
      url("/assets/img-hero.jpg") center / cover no-repeat;
  }
}

/* ---- Featured top story (full-width hero card) ---- */
.news-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.news-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  clip-path: polygon(
    18px 0,
    100% 0,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    0 100%,
    0 18px
  );
}

/* ---- News media block ---- */
.news-media {
  position: relative;
  min-height: 165px;
  overflow: hidden;
  background: #0c0f17;
}

.news-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 165px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.news-card:hover .news-media img {
  transform: scale(1.05);
}

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  color: #fff;
  background: rgba(255, 59, 78, 0.92);
  box-shadow: 0 0 14px rgba(255, 59, 78, 0.55);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* ---- Featured card media grows with the body ---- */
.news-card.featured .news-media {
  min-height: 300px;
}

.news-card.featured .news-media img {
  min-height: 300px;
}

.news-card.featured .news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px 26px 24px;
}

.news-card.featured h3 {
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.3;
  margin-bottom: 8px;
}

.news-card.featured p {
  font-size: 14px;
}

/* ---- Regular image-card news layout ---- */
.news-card {
  padding: 0;
  overflow: hidden;
}

.news-card .news-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .news-media {
  min-height: 150px;
}

.news-card .news-media img {
  min-height: 150px;
}

.news-card h3 {
  margin-bottom: 8px;
}

.news-card .news-source {
  margin-top: auto;
}

/* ---- Responsive newsroom ---- */
@media (max-width: 960px) {
  .news-card.featured {
    grid-template-columns: 1fr;
  }

  .news-card.featured .news-media,
  .news-card.featured .news-media img {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  .news-media,
  .news-media img {
    min-height: 130px;
  }
}