/* ===  Global reset & helpers  === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #333;
  background: #f9f9f9;
  /* Keep each page full height so the footer hugs the bottom */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===  Header  === */
header {
  background: #00539c;          /* primary brand colour */
  color: #fff;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
}

/* ===  Main section (expands)  === */
main {
  flex: 1;                      /* makes main take remaining height */
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ===  Card wrapper used on content blocks  === */
.card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.08);
  padding: 1.5rem;
}

/* ===  Footer (fixed)  === */
footer {
  background: #00539c;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem 0.5rem;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
}

footer a {
  color: #fff;
  margin: 0 0.35rem;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===  Responsive tweaks  === */
@media (max-width: 640px) {
  main {
    padding: 1.25rem;
  }
  footer {
    font-size: 0.8rem;
  }
}

