:root {
  --bg: #0b1120;
  --surface: #131c31;
  --surface2: #1a2540;
  --text: #e6edf7;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent2: #818cf8;
  --border: rgba(148, 163, 184, 0.16);
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  background: rgba(11, 17, 32, 0.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 18px; flex-wrap: wrap; }
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.logo em { color: var(--accent); font-style: normal; }
.logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.site-nav a {
  color: var(--muted); font-size: 0.9rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface2); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 1.3rem; border-radius: 8px; padding: 4px 12px; margin-left: auto; cursor: pointer; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 28px 0;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.hero-body { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.hero-body h1 { font-size: 1.7rem; line-height: 1.25; }
.hero-body h1 a { color: var(--text); }
.hero-body p { color: var(--muted); }
.btn {
  display: inline-block; align-self: flex-start;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0b1120; font-weight: 700; padding: 10px 20px;
  border-radius: 999px; font-size: 0.9rem;
}
.btn:hover { text-decoration: none; filter: brightness(1.1); }

/* Grid & cards */
.page-title { margin: 28px 0 6px; font-size: 1.6rem; }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin: 24px 0 40px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }
.card-img-link img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-body h2 { font-size: 1.05rem; line-height: 1.35; }
.card-body h2 a { color: var(--text); }
.card-body p { color: var(--muted); font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.badge {
  font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 999px; color: #0b1120; background: var(--accent);
}
.badge-breaches { background: #f87171; }
.badge-hacking { background: #22d3ee; }
.badge-interpol { background: #818cf8; }
.badge-arrests { background: #34d399; }
.badge-malware { background: #fbbf24; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 0 0 44px; flex-wrap: wrap; }
.pagination a {
  min-width: 38px; text-align: center; padding: 7px 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); font-weight: 600;
}
.pagination a.active { background: var(--accent); color: #0b1120; border-color: var(--accent); }
.pagination a:hover { text-decoration: none; color: var(--text); }

/* Article page */
.article-page { max-width: 780px; margin: 34px auto 50px; }
.article-page h1 { font-size: 2rem; line-height: 1.25; margin: 10px 0 14px; }
.lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 22px; }
.article-img img { border-radius: var(--radius); width: 100%; }
.article-body { margin-top: 26px; font-size: 1.03rem; }
.article-body p { margin-bottom: 18px; }
.source { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 10px; }
.related-title { margin-top: 40px; font-size: 1.3rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 26px 0 34px;
  color: var(--muted); font-size: 0.85rem; background: var(--surface);
}
.site-footer p { margin: 4px 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-body { padding: 0 22px 24px; }
  .hero-body h1 { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; border-radius: 8px; }
  .article-page h1 { font-size: 1.5rem; }
  .hero { margin: 18px 0; }
}
