/* Styling for the Article Cards */
.article-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(11, 76, 104, 0.07);
    border-color: #cbd5e1;
}

/* Left accent line on hover */
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #0b4c68;
    transition: height 0.2s ease;
}

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

/* Article header / badge */
.article-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.article-badge {
    background: rgba(11, 76, 104, 0.08);
    color: #0b4c68;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.85rem 0;
    line-height: 1.45;
}

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

.article-title a:hover {
    color: #0b4c68;
}

/* Authors list styling */
.article-authors {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.article-authors i {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.article-authors-text {
    font-weight: 500;
}

/* Actions Section */
.article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.view-details-btn {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.view-details-btn:hover {
    color: #0b4c68;
}

.view-details-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.view-details-btn:hover i {
    transform: translateX(3px);
}

/* Custom PDF Button style override */
.article-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #ef4444;
    border: 1px solid #fca5a5;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.04);
    transition: all 0.2s ease;
}

.article-pdf-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
    transform: translateY(-1px);
}

.article-pdf-btn i {
    font-size: 0.95rem;
}

@media (max-width: 575px) {
    .article-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .article-pdf-btn {
        width: 100%;
        justify-content: center;
    }
}
