.blog-section {
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .blog-section {
        padding: 20px 10px;
        /* Reduced mobile padding */
    }

    .posts-grid {
        gap: 20px;
    }
}

/* Search Bar */
.search-container {
    margin-bottom: 30px;
}

#search-input {
    width: -webkit-fill-available;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

/* ... */

.post-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    margin: 0 0 2% 0;
}

/* ... */

.category-tag {
    background: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.category-tag.primary {
    background: var(--accent-color);
    color: white;
}

.post-card h2 {
    margin: 10px 0 10px 0;
    font-size: 1.5rem;
}

.post-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.post-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-snippet {
    color: var(--text-muted);
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.error-message {
    background: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Skeleton Styles */
.skeleton-card {
    border-color: #2a2a2a;
}

.skeleton-tag {
    width: 60px;
    height: 20px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-title {
    width: 80%;
    height: 28px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-meta {
    width: 100px;
    height: 16px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 15px;
}

.skeleton-text {
    width: 100%;
    height: 16px;
    background: #333;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-btn {
    width: 100px;
    height: 20px;
    background: #333;
    border-radius: 4px;
    margin-top: 15px;
}

/* Animation */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton-tag,
.skeleton-title,
.skeleton-meta,
.skeleton-text,
.skeleton-btn {
    animation: pulse 1.5s infinite ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}