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

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: #0b7dda;
  transition: color 0.3s ease;
}

a:hover {
  color: #055a9c;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 850px;
  margin: 60px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.post-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.post-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 25px;
}

.post-meta span {
  margin-right: 20px;
}

.post-image {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.post-content {
  font-size: 18px;
  margin-bottom: 40px;
}

.post-tags {
  margin-bottom: 30px;
}

.post-tags .tag {
  display: inline-block;
  margin-right: 10px;
  background: #e0f3ff;
  padding: 5px 10px;
  border-radius: 4px;
  color: #0b7dda;
  font-size: 14px;
}

.navigation-posts {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  gap: 10px;
}

.navigation-posts .prev-post,
.navigation-posts .next-post {
  flex: 1;
  background: #f1f1f1;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: background 0.3s ease;
}

.navigation-posts a {
  display: block;
  color: inherit;
}

.navigation-posts img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.navigation-posts span {
  font-weight: bold;
  display: block;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.related-posts .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-posts .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.related-posts .card:hover {
  transform: translateY(-5px);
}

.related-posts .card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.related-posts .card-content {
  padding: 15px;
}

.related-posts .read-more {
  margin-top: 10px;
  display: inline-block;
  font-size: 14px;
  background: #0b7dda;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
}

/* Comments */
.comments-section {
  margin-top: 60px;
}

.comments-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.comment-box {
  background: #f3f3f3;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.comment-box strong {
  font-size: 16px;
}

.comment-box small {
  font-size: 12px;
  color: #666;
  display: block;
  margin-bottom: 10px;
}

.comment-form {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.comment-form button {
  padding: 10px;
  background: #0b7dda;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  align-self: flex-start;
}

.comment-form button:hover {
  background: #055a9c;
}

/* Responsive */
@media (max-width: 768px) {
  .post-title {
    font-size: 26px;
  }

  .navigation-posts {
    flex-direction: column;
  }
}