:root {
  --eu-blue: #004c97;
  --eu-blue-soft: #e6f0ff;
  --msca-gold: #f5a623;
  --accent: var(--eu-blue);
  --accent-soft: var(--eu-blue-soft);
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --bg-main: #f3f4f6;
  --bg-card: #ffffff;
  --bg-hero: radial-gradient(circle at 0% 0%, #eaf3ff 0, #ffffff 45%, #fdf5ec 100%);
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --radius: 1rem;
  --radius-pill: 999px;
}

/* Reset-ish */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

/* Layout */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.site-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: #0b1220;
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 1.75rem 1.25rem 2.5rem;
}

.site-footer > div {
  max-width: 1120px;
  margin: 0 auto;
}

.funding {
  margin-bottom: 1rem;
}

.disclaimer {
  color: #94a3b8;
}

.footer-meta {
  color: #6b7280;
}

/* Top bar & logos */

.top-bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--eu-blue);
}

.tagline {
  margin: 0;
  font-size: 0.8rem;
  max-width: 34rem;
  color: var(--text-muted);
}

.eu-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eu-logos img {
  display: block;
  height: 32px;
  width: auto;
}

/* Navigation */

.site-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.site-nav ul {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.35rem 1.25rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.site-nav a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-main);
  transform: translateY(-1px);
}

.site-nav a.active {
  background: var(--eu-blue);
  color: #ffffff;
  font-weight: 600;
}

/* Hero & sections */

.hero {
  margin: 1.75rem 0 2.25rem;
  padding: 2.4rem 2.2rem;
  border-radius: 1.5rem;
  background: var(--bg-hero);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.09), transparent 60%);
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.35rem;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 44rem;
  margin: 0.1rem 0;
}

.hero-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.7rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Buttons */

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease, border-color 0.15s ease;
}

.button {
  background: var(--eu-blue);
  color: #ffffff;
  border-color: var(--eu-blue);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.button:hover {
  background: #00366d;
  border-color: #00366d;
  transform: translateY(-1px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--eu-blue);
  border-color: rgba(148, 163, 184, 0.6);
}

.button-secondary:hover {
  background: #ffffff;
  border-color: var(--eu-blue);
}

/* Generic sections */

section {
  margin-bottom: 2rem;
}

section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.section-intro {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 46rem;
}

/* Cards & grids */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: var(--bg-card);
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.08);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40px auto auto -40px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.09), transparent 65%);
  opacity: 0.7;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
  position: relative;
}

.card p {
  position: relative;
  z-index: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  position: relative;
}

/* Pages, posts, and text */

.page-header h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.8rem;
}

.page-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  padding-bottom: 0.6rem;
}

.page-content p {
  margin-top: 0.2rem;
  margin-bottom: 0.9rem;
}

.post-header h1 {
  margin-top: 0.4rem;
  margin-bottom: 0.25rem;
  font-size: 1.7rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* News list */

.latest-news .news-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.news-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dotted rgba(148, 163, 184, 0.6);
  font-size: 0.95rem;
}

.news-list a {
  text-decoration: none;
  color: var(--eu-blue);
}

.news-list a:hover {
  text-decoration: underline;
}

.news-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-right: 0.6rem;
}

/* Misc */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.85em;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

/* Responsive tweaks */

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .top-bar {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .eu-logos {
    align-self: flex-start;
  }

  .hero {
    padding: 1.8rem 1.6rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .site-nav ul {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .site-content {
    padding: 1.25rem 0.9rem 3rem;
  }

  .hero {
    padding: 1.5rem 1.3rem;
    margin-top: 1.3rem;
  }
}