.writing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.writing-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.writing-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: #222;
}

.card-description {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.card-domain {
    font-weight: 500;
    color: #0066cc;
}

.card-date {
    color: #bbb;
}

.card-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    align-self: flex-start;
}

.card-link:hover {
    color: #0052a3;
}

/* Responsive design for tablets and mobile */
@media (max-width: 768px) {
    .writing-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .writing-cards {
        grid-template-columns: 1fr;
    }
}
