/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f6f9;
}

/* ==================== HEADER ==================== */
header {
    background: #0d6efd;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
}

.logo img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.08);
}

.logo span {
    white-space: nowrap;
}

/* Navigation */
nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        justify-content: center;
        gap: 10px;
    }
    
    nav a {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    
    .logo {
        font-size: 1.25rem;
    }
}

/* ==================== CONTENT STYLES (your existing + improvements) ==================== */
.post, .sidebar, .post-container {
    background: white;
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.post img, .featured-img {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

.post-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.85;
}

.post-content h2, .post-content h3 {
    margin: 30px 0 15px;
    color: #0d6efd;
}

.toc {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    margin: 25px 0;
}

.footer {
    background: #222;
    color: #ddd;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

.footer-links a {
    color: #ccc;
    margin: 0 8px;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Extra polish */
a {
    transition: color 0.2s;
}