/* Modern Blog Card Styles for Publications */

.blog-card {
    background: white;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    max-height: 500px;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    flex-shrink: 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Blog Card Content */
.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

/* Blog Card Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-badge:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.blog-date {
    color: #999;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-date i {
    font-size: 12px;
}

/* Blog Card Title */
.blog-card-title {
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #0066cc;
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 1rem;
}

/* Blog Read More Link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.blog-read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc;
    transition: width 0.3s ease;
}

.blog-read-more:hover {
    color: #004499;
}

.blog-read-more:hover::after {
    width: 100%;
}

.blog-read-more i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.blog-read-more:hover i {
    transform: translateX(4px);
}

/* No Image Placeholder */
.blog-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
}

.blog-no-image i {
    font-size: 3rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card {
        min-height: 480px;
        max-height: 480px;
    }

    .blog-card-image {
        height: 160px;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.05rem;
        height: 2.6rem;
    }

    .blog-card-excerpt {
        font-size: 0.9rem;
        height: 3rem;
    }
}

@media (max-width: 480px) {
    .blog-card {
        min-height: 420px;
        max-height: 420px;
    }

    .blog-card-image {
        height: 140px;
    }

    .blog-card-title {
        font-size: 0.95rem;
        height: 2.4rem;
    }

    .category-badge {
        padding: 0.3rem 0.7rem;
        font-size: 10px;
    }
}
