body {
  margin:0;
  font-family:Inter, sans-serif;
  color:white;
  overflow-x:hidden;

  background: linear-gradient(-45deg,#020617,#0f172a,#0ea5e9,#1e293b);
  background-size:400% 400%;
  animation:bg 14s ease infinite;
}

@keyframes bg {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* NAV */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:18px 40px;

  background:rgba(10,15,30,0.35);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}

.title {
  background: linear-gradient(90deg,#38bdf8,#22d3ee);
  -webkit-background-clip:text;
  color:transparent;
  text-shadow:0 0 15px rgba(56,189,248,0.6);
}

.back {
  text-decoration:none;
  color:white;
  padding:8px 16px;
  border-radius:10px;
  border:1px solid rgba(56,189,248,0.6);
}

/* HERO */
.hero {
  text-align:center;
  padding:80px 20px 40px;
}

.hero h2 {
  font-size:32px;
  margin-bottom:10px;
}

.hero p {
  opacity:0.7;
}

/* GRID */
.news-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
  padding:40px;
}

/* CARD */
.news-card {
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(20px);

  border-radius:20px;
  padding:20px;

  border:1px solid rgba(255,255,255,0.08);

  cursor:pointer;
  transition:0.4s;
}

.news-card:hover {
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.6);
}

.tag {
  font-size:12px;
  color:#38bdf8;
}

/* OVERLAY */
.news-view {
  position:fixed;
  inset:0;

  background:rgba(0,0,0,0.8);
  backdrop-filter:blur(20px);

  display:flex;
  justify-content:center;
  align-items:center;

  opacity:0;
  pointer-events:none;
  transition:0.4s;
}

.news-view.active {
  opacity:1;
  pointer-events:auto;
}

.nv-inner {
  width:90%;
  max-width:900px;

  background:rgba(20,25,40,0.6);
  backdrop-filter:blur(25px);

  border-radius:24px;
  padding:30px;

  transform:scale(0.9);
  transition:0.4s;
}

.news-view.active .nv-inner {
  transform:scale(1);
}

.nv-title {
  font-size:28px;
  margin-bottom:15px;
}

.nv-text {
  line-height:1.6;
  opacity:0.9;
}

.nv-close {
  position:absolute;
  top:20px;
  right:30px;
  background:none;
  border:none;
  color:white;
  cursor:pointer;
}