/* ===== Center layout (Jell-O layout) ===== */
#page {
  width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  background-color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

/* ===== Element selectors (used on multiple elements) ===== */
h1, h2 {
  color: #c9002c;  /* Miami red */
  margin-bottom: 10px;
}

p, li {
  color: #222;
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: #0a58ca;
}

/* ===== Classes ===== */
.nav {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.navlink {
  background: #f7f7f7;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.navlink:hover {
  background: #e0e0e0;
}

.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fafafa;
  padding: 15px;
  margin-bottom: 20px;
}

/* ===== ID styles ===== */
#siteHeader {
  border-bottom: 2px solid #eee;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

#siteTitle {
  font-size: 2rem;
}

#siteFooter {
  text-align: center;
  margin-top: 30px;
  color: #666;
  font-size: 0.9rem;
}

/* ===== Image & Button ===== */
.heroImage {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 10px;
}

.btn {
  background: #c9002c;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  font-weight: bold;
}

.btn:hover {
  background: #a00024;
}

/* ===== Responsive tweak ===== */
@media (max-width: 940px) {
  #page { width: 95%; }
}
/* Semantic layout helpers */
header p { margin: 4px 0 0; color: #555; }

main { display: block; }     /* explicit for older UAs */
nav  { display: block; }
aside{ margin-top: 16px; }

/* A little spacing harmony */
#mainContent .card + .card { margin-top: 16px; }
.cards ul { margin: 0 0 8px 18px; }

/* Optional: subtle separators */
nav.nav { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-bottom: 16px; }
