/* ===== General Styles ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #222;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.muted {
    color: #888;
}

/* ===== Blog Container ===== */
.blog-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

/* ===== Main Content ===== */
.blog-main {
    flex: 1 1 70%;
    min-width: 300px;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.featured-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-content {
    font-size: 1rem;
    line-height: 1.8;
    text-align:left;
}

.post-content ul {
    padding-left:20px;
}

.post-content p {
    margin-bottom:15px;
}

.post-tags {
    margin-top: 2rem;
}

.badge {
    display: inline-block;
    background: #e0e0e0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* ===== Sidebar ===== */
.blog-sidebar {
    flex: 1 1 25%;
    min-width: 200px;
}

.sidebar-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.75rem;
}

.sidebar-list li a {
    font-size: 0.95rem;
}

/* ===== Sidebar Thumbnails ===== */
.thumbnail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thumbnail-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
}

.thumb-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.thumb-content {
    flex: 1;
}

.thumb-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #007bff;
}

.thumb-title:hover {
    text-decoration: underline;
}

.thumb-date {
    font-size: 0.8rem;
    color: #888;
}

.categories-list li {
    margin-bottom: 0.6rem;
}

.categories-list li a {
    font-size: 0.95rem;
    color: #333;
}

.categories-list li a:hover {
    color: #007bff;
}


/* ===== Responsive ===== */
@media (max-width: 900px) {
    .blog-container {
        flex-direction: column;
    }

    .blog-main, .blog-sidebar {
        flex: 1 1 100%;
    }
}