body {
  font-family: Arial, Helvetica, sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  color: #333;
  background: #f9f9fb;
}

h1, h2, h3 {
  margin: 12px 0;
  color: #222;
  text-align: center;
}

nav {
  background: #2d6cdf;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

nav a:hover {
  text-decoration: underline;
  color: #ffe57f;
}

#events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-3px);
}

.thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.card h3, .card h2 {
  margin-top: 0;
  color: #1c3fa8;
}

.card a {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: #2d6cdf;
  font-weight: bold;
}

.card a:hover {
  text-decoration: underline;
}

.meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

form {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 20px auto;
}

form label {
  display: block;
  margin: 8px 0;
}

form input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  background-color: #2d6cdf;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #1e4fad;
}

ul.registrations {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}
ul.registrations li {
  background: #eef4ff;
  margin: 4px 0;
  padding: 6px 10px;
  border-radius: 4px;
}
