* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #dae0e6;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 55px;
  background: white;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.logo {
  font-size: 30px;
  color: #ff4500;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-left input {
  width: 320px;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
}
.page {
  max-width: 1200px;
  margin: 75px auto;
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 20px;
}

.left-sidebar {
  background: #f6f7f8;
  padding: 15px;
  border-radius: 6px;
  position: sticky;
  top: 75px;
  height: fit-content;
}

.left-sidebar ul {
  list-style: none;
}

.left-sidebar li {
  padding: 8px;
}

.left-sidebar .active {
  background: #e5e5e5;
  border-radius: 5px;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.post {
  background: white;
  display: flex;
  border-radius: 6px;
  overflow: hidden;
}

.vote {
  width: 45px;
  background: #f6f7f8;
  text-align: center;
  padding-top: 10px;
}

.post-body {
  padding: 15px;
  width: 100%;
}

.post-meta {
  font-size: 12px;
  color: gray;
  margin-bottom: 5px;
}

.image {
  width: 100%;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 6px;
}

.image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.actions {
  display: flex;
  gap: 15px;
  color: gray;
  font-size: 14px;
}

.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: sticky;
  top: 75px;
  height: fit-content;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 8px;
}

.btn {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.primary {
  background: #ff4500;
  color: white;
}

.outline {
  background: white;
  border: 1px solid #0079d3;
  color: #0079d3;
}

.communities li {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.communities button {
  background: #0079d3;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 15px;
}

.premium {
  background: #fff4ee;
}
