* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  line-height: 1.6;
  background-color: #fafafa;
  color: #222;
  padding: 1rem;
}

header, footer {
  background-color: #f0f0f0;
  padding: 1rem;
}

h1 a {
  text-decoration: none;
  color: #007acc;
}

nav {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  font-weight: bold;
  color: #007acc;
  text-decoration: none;
}

.nav-subject {
  background: #e6f0ff;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  font-size: 0.9rem;
  color: #003d66;
  text-decoration: none;
}

main {
  margin-top: 2rem;
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

input, select, textarea, button {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background-color: #007acc;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

.post-card {
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
}

.sidebar {
  margin-bottom: 2rem;
}

.home-layout {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .home-layout {
    flex-direction: row;
    gap: 2rem;
  }
  .sidebar {
    width: 30%;
  }
  .main {
    width: 70%;
  }
}

.site-page {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
}

.site-page h1, .site-page h2, .site-page h3 {
  margin-bottom: 0.5rem;
  color: #003d66;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.site-page p {
  margin-bottom: 1rem;
}

.site-page ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.site-page a {
  color: #007acc;
  text-decoration: none;
}

.site-page a:hover {
  text-decoration: underline;
}
