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

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

header {
  background: #263238;
  color: #fff;
  padding: 24px 20px;
  text-align: center;
}

header h1 {
  margin-bottom: 8px;
  font-size: 30px;
}

nav {
  background: #37474f;
  padding: 12px;
  text-align: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 3px;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
}

.container {
  max-width: 1000px;
  margin: 25px auto;
  padding: 0 15px;
}

.page {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
  margin-bottom: 15px;
  color: #263238;
}

h3 {
  margin-bottom: 6px;
}

p {
  margin-bottom: 12px;
}

.button {
  display: inline-block;
  background: #1565c0;
  color: #fff;
  padding: 10px 16px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 8px;
}

.button:hover {
  background: #0d47a1;
}

.card {
  background: #f8fafc;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 15px;
}

.forum-category {
  margin-bottom: 22px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.category-title {
  background: #eceff1;
  padding: 14px 16px;
  font-weight: bold;
  color: #263238;
  border-bottom: 1px solid #ddd;
}

.thread {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 16px;
  border-bottom: 1px solid #eee;
}

.thread:last-child {
  border-bottom: none;
}

.thread h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #1565c0;
}

.thread p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.thread-stats {
  min-width: 130px;
  text-align: right;
  color: #666;
  font-size: 14px;
}

ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

li {
  margin-bottom: 8px;
}

.contact-box {
  background: #f1f3f4;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 20px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: Arial, sans-serif;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  text-align: center;
  color: #666;
  padding: 25px 10px;
  font-size: 14px;
}

@media (max-width: 720px) {
  nav a {
    display: block;
    margin: 6px 0;
  }

  .thread {
    flex-direction: column;
  }

  .thread-stats {
    text-align: left;
  }
}
