/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: #f4f6f8;
  color: #333;
  padding: 20px;
}

/* Layout */
header, footer {
  background: #2c3e50;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  max-width: 800px;
  margin: 30px auto;
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Headings */
h1, h2, h3 {
    margin-top: 20px;
  margin-bottom: 10px;
  color: #2c3e50;
}

/* Forms */
form {
  margin-top: 20px;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #3498db;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #2980b9;
}

a {
  color: #3498db;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

/* Articles */
article {
  margin-bottom: 30px;
}

small {
  color: #666;
}

/* Responsive */
@media (max-width: 600px) {
  main {
    padding: 15px;
  }

  input, textarea, select, button {
    font-size: 16px;
  }
}


header nav a { margin-right: 8px; }
header nav span { margin-right: 8px; }


nav a {
  padding: 6px 10px;
  border-radius: 6px;
  margin-right: 6px;
}
nav a.active {
  font-weight: 600;
  text-decoration: none;
  background: #3a3d3f;
  outline: 1px solid #cfe3f9;
}


.article-content img { max-width: 100%; height: auto; border-radius: 6px; }
.article-content table { border-collapse: collapse; width: 100%; }
.article-content th, .article-content td { border: 1px solid #ddd; padding: 6px; }
.article-content h1, .article-content h2, .article-content h3 { margin-top: 1.2em; }
