/* BLOG LAYOUT */

.blog-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* BLOG HEADER */

.blog-title {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.blog-meta {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* COVER IMAGE */

.blog-cover {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 40px;
}

/* BLOG CONTENT */

.blog-content {
    font-size: 1.08rem;
    line-height: 1.9;
    color: #222;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    padding-left: 25px;
    margin-bottom: 1.5rem;
}

/* INLINE IMAGES */

.blog-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 35px auto;
    border-radius: 14px;
}

/* Portrait images */
.blog-content img.portrait {
    max-width: 420px;
}

/* CODE BLOCKS */

.blog-content pre {
    background: #111;
    color: #fff;
    padding: 18px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-content code {
    font-family: monospace;
}

/* BLOCKQUOTES */

.blog-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 20px;
    color: #555;
    margin: 2rem 0;
}

/* LINKS */

.blog-content a {
    color: #0d6efd;
    text-decoration: none;
}

.blog-content a:hover {
    text-decoration: underline;
}

/* BLOG GRID */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

/*  BLOG CARDS */

.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 22px;
}

.blog-card-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-date {
    font-size: 0.9rem;
    color: #888;
}