/* Articles Index Page Styling */
.articles-container {
    padding: 2rem 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.article-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(79, 70, 229, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    position: relative;
    padding-right: 120px;
}

.article-actions {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    gap: 0.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #4f46e5;
}

.article-excerpt {
    color: #4b5563;
    margin-bottom: 1.25rem;
    flex: 1;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #4f46e5;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.read-more:hover {
    color: #4338ca;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination .page-link {
    color: #4f46e5;
    border: 1px solid #e5e7eb;
    margin: 0 0.25rem;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.pagination .page-link:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .article-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .article-card {
        margin-bottom: 1.5rem;
    }
    
    .article-date {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .article-actions {
        position: static;
        margin-top: 0.75rem;
        justify-content: flex-start;
    }
}
