body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto; /* let content set height */
    min-height: 100vh;
    color: #333;
    text-align: center;
}

main {
    padding-top: 80px; /* prevent navbar overlap */
}

h1 {
    padding-top: 80px;
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    /*padding-top: 80px;*/
    font-size: 1.2em;
    color: #555;
}

/*footer {*/
/*    position: absolute;*/
/*    bottom: 10px;*/
/*    font-size: 0.9em;*/
/*    color: #aaa;*/
/*}*/

footer {
  background-color: #f2f2f2;
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  color: #333;
  font-size: 0.9em;
  width: 100%;
  clear: both;
}

nav {
    background-color: #2c3e50;
    width: 100%;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    font-size: 1.05em;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 4px;
}

nav a:hover {
    color: #f39c12;
    border-bottom: 2px solid #f39c12;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
}

/*.subject {*/
/*  background-color: #ffffff;*/
/*  padding: 20px;*/
/*  border-radius: 12px;*/
/*  box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
/*  margin-bottom: 25px;*/
/*}*/

.subject {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 40px; /* more spacing */
    text-align: left; /* so headings & lists align nicely */
}

.subject h2 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.subject ul {
  list-style-type: none;
  padding-left: 0;
}

.subject ul li {
  margin: 8px 0;
}

.subject ul li a {
  color: #0077cc;
  text-decoration: none;
  font-weight: 500;
}

.subject ul li a:hover {
  text-decoration: underline;
}
