/* Blog Styles */

.blog-wrapper {
    padding: 60px 30px 80px;
    background: #ffffff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all .3s ease;
}

.post-card:hover {
    border-color: #BB1717;
    box-shadow: 0 8px 25px rgba(187,23,23,0.15);
    transform: translateY(-3px);
}

.post-card .post-date {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #BB1717;
    text-transform: uppercase;
}

.post-card h3 {
    font-size: 20px;
    line-height: 1.3;
    color: #333;
}

.post-card p { color: #555; line-height: 1.6; font-size: 14px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.post-tag {
    background: rgba(187,23,23,0.1);
    color: #8B0000;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: .5px;
    font-weight: bold;
}

.post-link { text-decoration: none; color: #BB1717; font-weight: bold; font-size: 13px; }
.post-link:hover { color: #8B0000; }

/* Single Post */
.post-article { max-width: 850px; margin: 0 auto; padding: 40px 20px; }
.post-title { font-size: 34px; margin-bottom: 10px; letter-spacing: 1px; }
.post-meta { font-size: 13px; color: #BB1717; font-weight: bold; letter-spacing: 1px; margin-bottom: 25px; }

.post-body { font-size: 16px; line-height: 1.8; color: #333; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 { margin: 35px 0 15px; line-height: 1.25; font-weight: bold; color: #222; }
.post-body h2 { font-size: 26px; }
.post-body h3 { font-size: 20px; }
.post-body p { margin-bottom: 18px; }
.post-body a { color: #BB1717; text-decoration: none; }
.post-body a:hover { text-decoration: underline; }
.post-body code { background: #f0f0f0; padding: 2px 5px; border-radius: 4px; font-family: monospace; font-size: 14px; }
.post-body pre { background: #1a1a1a; color: #f5f5f5; padding: 18px 20px; border-radius: 6px; overflow-x: auto; margin-bottom: 25px; }
.post-body pre code { background: transparent; color: inherit; padding: 0; }
.post-body ul, .post-body ol { margin: 0 0 20px 25px; }
.post-body blockquote { margin: 25px 0; padding: 15px 20px; background: #f7f7f7; border-left: 4px solid #BB1717; font-style: italic; }

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-navigation { text-align: center; margin: 40px 0 20px; }

/* Utility */
.hidden { display: none !important; }
