/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f5f5;
  color: #1f2937;
  line-height: 1.6;
}

/* Header and nav */
header {
  position: sticky; top: 0;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 10;
}
h1 {
  margin: 0;
  padding: 18px 20px 8px;
  text-align: center;
  color: #0f3fa6;
  font-weight: 800;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 10px 20px 16px;
  justify-content: center;
}
.nav a {
  display: inline-block;
  text-decoration: none;
  padding: 8px 12px;
  color: #0f3fa6;
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  border-radius: 999px;
  font-weight: 600;
}
.nav a:hover { background: #e1ecff; }

/* Card grid */
.container {
  width: min(1000px, 92%);
  margin: 24px auto 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  border-color: #d1d5db;
}
.card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; }
.card a { color: #0f3fa6; text-decoration: none; font-weight: 600; }
.card a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  background: #fff;
}
.foot {
  width: min(1000px, 92%);
  margin: 0 auto;
  padding: 22px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
}
.site-footer a { color: #0f3fa6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .nav { gap: 6px; }
  .nav a { padding: 6px 10px; }
}
