/* Blog Page - Card Styles */
.blog-card {
    display: flex;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 320px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.blog-card-image {
    flex-shrink: 0;
    width: 350px;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

.blog-card-content {
    padding: 2rem;
    padding-bottom: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.blog-card-text {
    flex: 0 1 auto;
    margin-bottom: 1.5rem;
    min-width: 0;
    max-height: 200px;
    overflow: hidden;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #000 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: normal;
}

body.dark-mode .blog-card-title {
    color: #fff !important;
}

.blog-card-date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-card-preview {
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-card-btn {
    align-self: flex-end;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
        height: auto;
    }
    
    .blog-card-image {
        width: 100%;
        height: 200px;
    }
    
    .blog-card-btn {
        align-self: center;
    }
}
