.blog-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-header .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}

.blog-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
}

.blog-meta .category {
    color: #0d6efd;
    font-weight: 500;
}

.blog-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card h2 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card h2 a:hover {
    color: #0d6efd;
}

.blog-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    .blog-card {
        background: #242729;
        border: 1px solid #373b3e;
    }

    .blog-card h2 a {
        color: #e9ecef;
    }

    .blog-card p {
        color: #adb5bd;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 0;
    }

    .blog-header h1 {
        font-size: 2rem;
    }

    .blog-card-img {
        height: 200px;
    }

    .blog-card-content {
        padding: 1.5rem;
    }

    .blog-card h2 {
        font-size: 1.5rem;
    }
}

/* Blog Post Specific Styles */
.blog-post {
    padding: 3rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.post-content .lead {
    font-size: 1.4rem;
    color: #495057;
    margin-bottom: 2rem;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 2rem 0;
}

.code-example {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.code-example pre {
    margin: 0;
}

.code-example code {
    color: #f8f9fa;
    font-size: 1rem;
}

.post-tags {
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(13, 110, 253, 0.2);
    transform: translateY(-1px);
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading-spinner::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 1rem auto;
    border-radius: 50%;
    border: 3px solid #dee2e6;
    border-top-color: #0d6efd;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {

    .post-header h1,
    .post-content h2 {
        color: #f8f9fa;
    }

    .post-content .lead {
        color: #e9ecef;
    }

    .tag {
        background: rgba(13, 110, 253, 0.2);
        color: #6ea8fe;
    }

    .tag:hover {
        background: rgba(13, 110, 253, 0.3);
    }

    .loading-spinner {
        color: #adb5bd;
    }

    .loading-spinner::after {
        border-color: #373b3e;
        border-top-color: #0d6efd;
    }
}