/* Blog Articles CSS Styles */

/* Article Card Styling */
.article-card {
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.article-card .card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Card Image Styling */
.article-card .card-img-top {
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card .card:hover .card-img-top {
    transform: scale(1.05);
}

/* Card Body Styling */
.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card .card-text:last-of-type {
    margin-bottom: 1.5rem;
}

/* Date styling */
.article-card .text-muted {
    font-size: 0.875rem;
    color: #8a8a8a !important;
}

/* Button Styling */
.article-card .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-card .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* Placeholder image styling */
.article-card .bg-light {
    background-color: #f8f9fa !important;
    border: 2px dashed #dee2e6;
}

.article-card .bg-light span {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Sidebar Styling */
.sidebar {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 2rem;
}

.sidebar h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.sidebar .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.sidebar .btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}


/* Responsive Design */
@media (max-width: 768px) {
    .article-card .card-body {
        padding: 1.25rem;
    }
    
    .article-card .card-title {
        font-size: 1.125rem;
    }
    
    .sidebar {
        margin-top: 2rem;
        position: static;
    }
    
    .page-header {
        padding: 2.5rem 0;
        margin-bottom: 2rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .article-card .card-img-top {
        height: 150px;
    }
    
    .article-card .card-body {
        padding: 1rem;
    }
    
    .sidebar {
        padding: 1.5rem;
    }
    
    .page-header h2 {
        font-size: 1.75rem;
    }
}

/* Animation for loading */
.article-card {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.2s; }
.article-card:nth-child(3) { animation-delay: 0.3s; }
.article-card:nth-child(4) { animation-delay: 0.4s; }
.article-card:nth-child(5) { animation-delay: 0.5s; }