/* article-list.css */

/* Main Section Styling */
.article-list-section {
    background-color: #E8F8FB;
    position: relative;
    z-index: 1;
}

/* Card Styling */
.article-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-zoom {
    overflow: hidden;
    border-radius: 8px;
}

.card-zoom img {
    transition: transform 0.3s ease;
}

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

/* Category Badge */
.category-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 2;
    background-color: #6f42c1;
    padding: 0.25rem 1rem;
    border-radius: 20px;
}

/* Card Text Styling */
.card-title {
    color: #2d3748;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 1rem 0;
    min-height: 3em;
}

.card-excerpt {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Author & Date Styling */
.meta-info {
    color: #718096;
    font-size: 0.85rem;
}

.meta-info svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
}

/* Sidebar Styling */
.sidebar-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
}

.search-input {
    border: none;
    background: transparent;
}

.search-input:focus {
    box-shadow: none;
}

.recent-article-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.recent-article-item:last-child {
    border-bottom: none;
}

/* Tag Styling */
.tag-btn {
    background-color: #edf2f7;
    color: #2d3748;
    border-radius: 20px;
    padding: 0.25rem 1rem;
    margin: 0.25rem;
    transition: all 0.3s ease;
}

.tag-btn:hover {
    background-color: #6f42c1;
    color: white;
}

/* Pagination Styling */
.pagination .page-link {
    color: #6f42c1;
    border: 1px solid #e2e8f0;
    margin: 0 0.25rem;
}

.pagination .page-item.active .page-link {
    background-color: #6f42c1;
    border-color: #6f42c1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }

    .sidebar-section {
        margin-top: 2rem;
    }

    .category-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
    }
}