.blog-header { padding: 120px 0 60px 0; text-align: center; }
        .gradient-text {
            background: linear-gradient(to right, #60A5FA, #A78BFA);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }

        .categories {
            display: flex; justify-content: center; gap: 12px; margin-bottom: 50px; flex-wrap: wrap;
        }
        .cat-pill {
            padding: 8px 20px; border-radius: 50px; border: 1px solid var(--border);
            font-size: 0.9rem; color: var(--text-muted); cursor: pointer; transition: 0.3s;
        }
        .cat-pill:hover, .cat-pill.active {
            background: var(--primary); color: white; border-color: var(--primary);
        }

        /* Grid Layout */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 60px; /* Space below the grid */
            clear: both;
        }

        .blog-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease;
            display: flex; flex-direction: column;
        }
        .blog-card:hover { transform: translateY(-8px); border-color: var(--primary); }
        .blog-img { width: 100%; height: 220px; object-fit: cover; }
        .blog-body { padding: 24px; flex-grow: 1; }
        .blog-tag { color: var(--primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; display: block; }
        /*.blog-title { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.3; cursor:pointer }*/
.recent-post-list a {
    text-decoration: none;
}

.blog-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0;
    color: var(--text-main);
    transition: color 0.2s ease;
}

.recent-post-list a:hover .blog-title {
    color: var(--primary);
}
        .blog-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
        .blog-footer { padding-top: 15px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }

        /* Pagination Styling */
        .pagination-wrapper {
            display: flex;
            justify-content: center;
            padding: 40px 0 80px; /* Generous padding to stay at bottom */
            border-top: 1px solid var(--border);
            margin-top: 20px;
        }

        .pagination-container {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .page-link {
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: var(--bg-card);
            color: var(--text-main);
            text-decoration: none;
            font-weight: 600;
            transition: 0.2s;
        }

        .page-link:hover:not(.disabled) {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(59, 130, 246, 0.05);
        }

        .page-link.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .page-link.disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .theme-toggle {
            width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
            background: var(--bg-card); cursor: pointer; display: flex; align-items: center; justify-content: center;
        }
        .theme-toggle .sun { display: none; }
        [data-theme="light"] .sun { display: block; }
        [data-theme="light"] .moon { display: none; }

        footer { border-top: 1px solid var(--border); padding: 40px 0; }

        @media (max-width: 768px) {
            .blog-grid { grid-template-columns: 1fr; }
        }

.text-trim {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* number of lines */
    overflow: hidden;
}