:root {
    --primary-color: #4299e1;
    --primary-dark: #2b6cb0;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
    --transition: all 0.3s ease;
}

.blog-header {
    background: linear-gradient(rgba(66, 153, 225, 0.1), rgba(66, 153, 225, 0.2));
    padding: 60px 0;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    justify-content: center;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.main-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.blog-tags {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.blog-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.recent-posts {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf2f7;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.recent-post-title:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.categories {
    list-style: none;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    transition: var(--transition);
}

.category-item:last-child {
    border-bottom: none;
}

.category-item:hover {
    padding-left: 10px;
    color: var(--primary-color);
}

.share-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.share-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.facebook { background: #1877f2; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.pinterest { background: #bd081c; }

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .blog-content {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-image {
        height: 300px;
    }
}