.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: var(--bg-card);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.article-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6), inset 0 0 20px rgba(0, 217, 255, 0.05);
    transform: translateY(-5px);
}

.article-card:hover::before {
    left: 100%;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--neon-magenta);
}

.article-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: rgba(0, 217, 255, 0.2);
    color: var(--neon-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--neon-cyan);
    width: fit-content;
}

.article-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    padding-top: 1rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--neon-cyan);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: .7rem 1rem;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 4px;
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.pagination a:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.pagination .active a{
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    color: var(--bg-dark);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .pagination {
        gap: 0.3rem;
    }

    .pagination a, .pagination span {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}