:root{
  --bg:#0f1724;        /* very dark navy */
  --panel:#0b1220;     /* slightly lighter panel */
  --card:#071028;      /* card background */
  --muted:#98a0b3;
  --accent:#6ee7b7;
  --accent-2:#7dd3fc;
  --politics:#ff7b72;
  --science:#8b5cf6;
  --tech:#06b6d4;
  --glass: rgba(255,255,255,0.04);
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin:0;
  background:linear-gradient(180deg,var(--bg) 0%, #071430 100%);
  color:#e6eef8;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding-bottom:64px;
}

/* Hero */
.hero {
  display:flex;
  gap:28px;
  align-items:center;
  padding:48px;
  background:linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  backdrop-filter: blur(6px);
  margin:28px auto;
  max-width:1100px;
  border-radius:12px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
}

.hero-image {
  width:160px;
  height:160px;
  object-fit:cover;
  border-radius:12px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  flex:0 0 160px;
  transform: translateZ(0);
  border: 1px solid rgba(255,255,255,0.04);
}

.hero .main { max-width:760px; }
.title {
  margin:0 0 6px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight:600;
  font-size:36px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.lead {
  margin:0;
  color:var(--muted);
  font-weight:300;
}

/* Panel */
.panel {
  padding:28px;
  max-width:1100px;
  margin:20px auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-radius:12px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.55);
}

/* Grid */
.grid {
  display:flex;
  gap:20px;
  justify-content:space-between;
}

/* Card */
.card {
  position:relative;
  flex:1 1 0;
  min-width:220px;
  padding:22px 20px 20px 20px;
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms;
  overflow:visible;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(2,6,23,0.6);
}

/* Colored square badge */
.badge {
  width:64px;
  height:64px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight:700;
  font-size:24px;
  color:#071022;
  box-shadow: 0 8px 18px rgba(2,6,23,0.6);
  margin-bottom:12px;
}
.badge-politics { background: linear-gradient(135deg,var(--politics), #ffb199); }
.badge-science  { background: linear-gradient(135deg,var(--science), #c084fc); color:#fff; }
.badge-tech     { background: linear-gradient(135deg,var(--tech), #60a5fa); color:#042539; }

/* Headings */
.card h2 {
  margin:0 0 8px;
  font-size:18px;
  color:#eaf6ff;
  font-weight:600;
  letter-spacing:0.01em;
}

/* Submenu (hidden by default, shown on hover) */
.submenu {
  list-style:none;
  margin:12px 0 0 0;
  padding:0;
  display:block;
  max-height:0;
  overflow:hidden;
  transition: max-height 260ms cubic-bezier(.2,.9,.3,1), opacity 180ms;
  opacity:0;
}
.card:hover .submenu,
.card:focus-within .submenu {
  max-height:400px;
  opacity:1;
}

/* Subitem styling */
.submenu li {
  margin:10px 0;
}
.submenu a {
  color: #cfefff;
  text-decoration:none;
  font-size:14px;
  display:inline-block;
  padding:8px 12px;
  border-radius:8px;
  transition: background 160ms, transform 120ms;
}
.submenu a:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(6px);
}

/* Small caption under title (keeps main panel template as is) */
.panel-footer {
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
}

/* Responsive */
@media (max-width:920px){
  .grid { flex-direction:column; }
  .hero { padding:28px; gap:16px; }
  .hero-image { width:140px; height:140px; flex:0 0 140px; }
}
