/* ===== BLOG STYLES ===== */

/* Page background */
body {
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    background-color: #f5f7fa; /* softer background */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

/* Main blog container */
.blog-post {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Title */
.blog-post h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

/* Author / date */
.blog-post p {
    color: #6b7280;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Featured image */
.blog-post img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 25px 0;
}

/* Blog content */
.body-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

/* Paragraph spacing */
.body-content p {
    margin-bottom: 18px;
}

/* Links inside blog */
.body-content a {
    color: #2563eb;
    font-weight: 500;
}

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

/* Tags section */
.tags {
    margin-top: 30px;
}

/* Tag label */
.tags strong {
    margin-right: 10px;
}

/* Tag badges */
.tags span {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 6px 12px;
    margin: 5px 5px 0 0;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== BLOG LIST (INDEX PAGE) ===== */

.post-list-item {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.post-list-item h2 {
    margin-top: 0;
    font-size: 1.6rem;
}

.post-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.post-body {
    font-size: 1rem;
    color: #444;
}

/* ===== HEADER (optional blog header styling) ===== */

header {
    background: #ffffff;
    color: #111;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    margin: 60px 0 20px 0;
}

/* ===== MOBILE ===== */

@media (max-width: 768px) {
    .blog-post {
        margin: 20px;
        padding: 20px;
    }

    .blog-post h1 {
        font-size: 1.8rem;
    }
}